Open
Description
With the following directory tree:
+-- test/
| +-- dir
| +-- file.js
fg.sync('test/**', {onlyFiles: false});
// Result => ['test/dir/', 'test/dir/file.js']
// Should be => ['test', 'test/dir', 'test/dir/file.js']
For example with node-glob
:
glob.sync('test/**', {nodir: false});
// Result => ['test', 'test/dir', 'test/dir/file.js']