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);
});
};
exports.existsSync = function(path) {
try {
- process.binding('fs').stat(path);
+ process.binding('fs').stat(_makeLong(path));
return true;
} catch (e) {
return false;
};
-exports._makeLong = isWindows ?
+var _makeLong = exports._makeLong = isWindows ?
function(path) {
var resolvedPath = exports.resolve(path);