tree: fix recursive visibleCount adjustment

This commit is contained in:
Joao Moreno
2018-06-29 09:59:13 +02:00
parent 105049816e
commit 136db8a3f7
3 changed files with 59 additions and 15 deletions

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 >= 2) {
if (!stat.isDirectory() || element === '.git' || element === '.build' || level >= 3) {
return { element };
}