mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
_makeLong shouldn't turn the empty string into \\?\C:\
This commit is contained in:
@@ -420,6 +420,11 @@ exports.existsSync = function(path) {
|
||||
|
||||
var _makeLong = exports._makeLong = isWindows ?
|
||||
function(path) {
|
||||
path = "" + path;
|
||||
if (!path) {
|
||||
return "";
|
||||
}
|
||||
|
||||
var resolvedPath = exports.resolve(path);
|
||||
|
||||
if (resolvedPath.match(/^[a-zA-Z]\:\\/)) {
|
||||
|
||||
Reference in New Issue
Block a user