mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-12 23:43:20 -05:00
Fixed redirection
This commit is contained in:
parent
2b04eebcab
commit
d07ca171f9
@ -56,7 +56,8 @@ function __readdirSync_fix(path)
|
||||
var sysnative = false;
|
||||
pathstr = require('fs')._fixwinpath(path);
|
||||
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'); }
|
||||
return (ret);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user