Skip to content

With onlyFiles: false directories at the root are not included #47

Open
@pvdlg

Description

@pvdlg

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']

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions