ysmood/nofs

[EachDir] filter confilcts with minimatch pattern

Closed this issue · 3 comments

When I use a minimatch pattern as spath arg in eachDir, filter option will be overwrite.

nofs.eachDir '*',  filter ({isDir}) -> isDir

Is this designed or not considered?

see: https://github.com/ysmood/nofs/blob/master/src/main.coffee?source#L452

@dracupid I optimized it a bit. See the test case

it 'eachDir pattern with filter', ->

If you feel comfortable with the test case, I may release a new version of nofs.

Good job 👍

v0.9.5