tree test: refilter on load

This commit is contained in:
Joao Moreno
2018-10-02 12:42:16 +02:00
parent a74af7fe7f
commit a44e45188c
2 changed files with 25 additions and 24 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ async function getTree(fsPath, level) {
const element = path.basename(fsPath);
const stat = await fs.stat(fsPath);
if (!stat.isDirectory() || element === '.git' || element === '.build' || level >= 5) {
if (!stat.isDirectory() || element === '.git' || element === '.build' || level >= 2) {
return { element };
}