do not accept directories in fileTree

This commit is contained in:
2017-05-27 01:07:32 +02:00
parent c8a21e8228
commit d22e0cde8f
5 changed files with 10 additions and 3 deletions

View File

@ -375,7 +375,8 @@ export let listFileTree = (dirPathArg: string, miniMatchFilter: string): Promise
}
let options = {
cwd: dirPath
cwd: dirPath,
nodir: true
}
plugins.glob(miniMatchFilter, options, (err, files: string[]) => {
if (err) {