Fix infinite recursive loop _findFileInRoot

pull/1/head
ClemDee 6 years ago
parent 76e2f63c5a
commit 1b6b9c2126

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

Loading…
Cancel
Save