summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-07-23 11:26:03 +0200
committerBert Belder <bertbelder@gmail.com>2012-07-23 13:55:42 +0200
commit43a0c8811627ea224bb18ba3c72b91ca2c4ea8d7 (patch)
treecfc1f25a0f694f8b0c2aedd7b934555ebf04d664 /lib
parent688859afc09307d358b3f160cdd9aff2d2ce6c6f (diff)
downloadnodejs-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.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fs.js b/lib/fs.js
index ae9cdf4c4..51dfe5629 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -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;