nik-lus

Results 3 comments of nik-lus

Quick follow up, just tested by excluding a 'git' folder (no ' . ' prefix) `const tree = dirTree(rootPath, { exclude: [/git/] }); console.log('tree is ', tree)` and again I...

``` path = '/usr/project/.git/' excludes = [new RegExp('git')] excludes.some((exclusion) => exclusion.test(path)); // from line 63: resolves to true which in turn returns null ``` Thanks for looking into this. Edit:...

After some more thought, could it be that '.git' is the first folder in the directory and the exclusion /.git/ trips the if statement on line 63 and it returns...