Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Run path.exists paths through _makeLong

  • Loading branch information...
commit a661830569f424ac929a075bacaa94d70e732924 1 parent 5166758
Bert Belder piscisaureus authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/path.js
6 lib/path.js
View
@@ -402,7 +402,7 @@ exports.extname = function(path) {
exports.exists = function(path, callback) {
- process.binding('fs').stat(path, function(err, stats) {
+ process.binding('fs').stat(_makeLong(path), function(err, stats) {
if (callback) callback(err ? false : true);
});
};
@@ -410,7 +410,7 @@ exports.exists = function(path, callback) {
exports.existsSync = function(path) {
try {
- process.binding('fs').stat(path);
+ process.binding('fs').stat(_makeLong(path));
return true;
} catch (e) {
return false;
@@ -418,7 +418,7 @@ exports.existsSync = function(path) {
};
-exports._makeLong = isWindows ?
+var _makeLong = exports._makeLong = isWindows ?
function(path) {
var resolvedPath = exports.resolve(path);
Please sign in to comment.
Something went wrong with that request. Please try again.