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,10 +353,12 @@ define([
} }
return paths; return paths;
} }
for (var e in root) { if (isFolder(root)) {
var nPath = path.slice(); for (var e in root) {
nPath.push(e); var nPath = path.slice();
_findFileInRoot(nPath, file).forEach(addPaths); nPath.push(e);
_findFileInRoot(nPath, file).forEach(addPaths);
}
} }
return paths; return paths;