node-dir icon indicating copy to clipboard operation
node-dir copied to clipboard

Add option to test patterns on full path instead of base name

Open Mr-Wallet opened this issue 8 years ago • 0 comments

Suppose I have the following files:

src/README.md
spec/README.md

There is no way to exclude only one of them from being iterated upon, because both of them are tested as README.md.

Similarly for folders:

src/utils/
spec/utils/

There is no way to only hit one of these.

The only alternative I can see is to do many calls to node-dir on deeper starting paths so that I can specify more specific rules per call - but that doesn't scale well as directories get deeper and is not refactor-friendly if directories get moved around. This could be easily solved if there were some way to pass the full path to matches.

Mr-Wallet avatar May 18 '17 18:05 Mr-Wallet