From d95003f414cd205da5ad467e585a73a4e09fa4ff Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Thu, 18 Jun 2015 08:31:06 -0700 Subject: [PATCH] module: fix stat with long paths on windows --- lib/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/module.js b/lib/module.js index 9eba6bfdc15518..d9b4415ad8fe94 100644 --- a/lib/module.js +++ b/lib/module.js @@ -143,7 +143,7 @@ Module._findPath = function(request, paths) { // For each path for (var i = 0, PL = paths.length; i < PL; i++) { // Don't search further if path doesn't exist - if (paths[i] && internalModuleStat(paths[i]) < 1) continue; + if (paths[i] && internalModuleStat(path._makeLong(paths[i])) < 1) continue; var basePath = path.resolve(paths[i], request); var filename;