Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mr-Wallet opened this issue May 18, 2017 · 0 comments
Open

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

Mr-Wallet opened this issue May 18, 2017 · 0 comments

Comments

@Mr-Wallet
Copy link

Mr-Wallet commented May 18, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant