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