diff options
author | Bert Belder <bertbelder@gmail.com> | 2012-07-23 11:26:03 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2012-07-23 13:55:42 +0200 |
commit | 43a0c8811627ea224bb18ba3c72b91ca2c4ea8d7 (patch) | |
tree | cfc1f25a0f694f8b0c2aedd7b934555ebf04d664 /lib | |
parent | 688859afc09307d358b3f160cdd9aff2d2ce6c6f (diff) | |
download | nodejs-43a0c8811627ea224bb18ba3c72b91ca2c4ea8d7.tar.gz nodejs-43a0c8811627ea224bb18ba3c72b91ca2c4ea8d7.tar.bz2 nodejs-43a0c8811627ea224bb18ba3c72b91ca2c4ea8d7.zip |
windows: correctly prep long path for fs.exists(Sync)
Closes GH-3739
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fs.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -87,14 +87,14 @@ fs.Stats.prototype.isSocket = function() { }; fs.exists = function(path, callback) { - binding.stat(path, function(err, stats) { + binding.stat(pathModule._makeLong(path), function(err, stats) { if (callback) callback(err ? false : true); }); }; fs.existsSync = function(path) { try { - binding.stat(path); + binding.stat(pathModule._makeLong(path)); return true; } catch (e) { return false; |