Fixed redirection

This commit is contained in:
Bryan Roe 2022-10-24 13:26:29 -07:00
parent 2b04eebcab
commit d07ca171f9
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ function __readdirSync_fix(path)
var sysnative = false; var sysnative = false;
pathstr = require('fs')._fixwinpath(path); pathstr = require('fs')._fixwinpath(path);
if (pathstr.split('\\*').join('').toLowerCase() == process.env['windir'].toLowerCase()) { sysnative = true; } if (pathstr.split('\\*').join('').toLowerCase() == process.env['windir'].toLowerCase()) { sysnative = true; }
var ret = __readdirSync_old(path);
var ret = require('fs').__readdirSync_old(path);
if (sysnative) { ret.push('sysnative'); } if (sysnative) { ret.push('sysnative'); }
return (ret); return (ret);
} }