Open steveluscher opened 8 years ago
I hope this is just me not understanding glob syntax. I seem to be able to read test and src separately, but not together, joined in braces.
> var glob = require('glob-fs')(); undefined > glob.readdirStream('../foopath/test/**').on('data', function(file) { console.log(file.path); }), null; null > /Users/steveluscher/.../foopath/test/testOneFile.js /Users/steveluscher/.../foopath/test/testTwoFile.js > glob.readdirStream('../foopath/src/**').on('data', function(file) { console.log(file.path); }), null; null > /Users/steveluscher/.../foopath/src/srcOneFile.js /Users/steveluscher/.../foopath/src/srcTwoFile.js > glob.readdirStream('{../foopath/src,../foopath/test}/**').on('data', function(file) { console.log(file.path); }), null; null
Note that the same glob pattern used with ls lists all four files:
ls
ls -al {../foopath/src,../foopath/test}/**
that sounds like a bug. I'll look into it, thanks for reporting
+1
I hope this is just me not understanding glob syntax. I seem to be able to read test and src separately, but not together, joined in braces.
Note that the same glob pattern used with
ls
lists all four files: