Fix infinite recursive loop _findFileInRoot

This commit is contained in:
ClemDee 2019-06-19 15:47:22 +02:00
parent 76e2f63c5a
commit 1b6b9c2126

View File

@ -353,11 +353,13 @@ define([
} }
return paths; return paths;
} }
if (isFolder(root)) {
for (var e in root) { for (var e in root) {
var nPath = path.slice(); var nPath = path.slice();
nPath.push(e); nPath.push(e);
_findFileInRoot(nPath, file).forEach(addPaths); _findFileInRoot(nPath, file).forEach(addPaths);
} }
}
return paths; return paths;
}; };