-
Notifications
You must be signed in to change notification settings - Fork 87
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 doNotRecurseIntoDirectory option? #48
Comments
Or perhaps just |
Ok this makes a big difference (for my use case anyways). On a Lerna monorepo with a number of packages and I'll make a PR real quick! |
Hmmm... though needing to add another argument complicates things. Would you be ok if we turn the first argument into an object with named arguments? |
I like this idea. Reading every file and then just filtering them out does seem pretty inefficient. |
Sweet! How do you want to handle adding the new argument? |
I don't really care how we approach it, as long as we do it in a
backwards-compatible way. I'd love to release this without bumping the
major version number.
…On Sat, Feb 4, 2017 at 6:27 PM, Kyle Mathews ***@***.***> wrote:
Sweet! How do you want to handle adding the new argument?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEZWyAyA3Ea7cVbbYnRp4o35uO5d_fFks5rZSVugaJpZM4L1kHS>
.
|
FYI, pretty sure ignoring a directory already stops this module from recursing into it. See: https://github.com/jergason/recursive-readdir/blob/v2.1.0/index.js#L47-L53 |
@jergason Are you still interested in this idea ? |
It'd save some time on very big subdirectory trees if you could avoid reading subdirectories that you're going to ignore anyways e.g.
node_modules
. Better to just avoid reading those directories at all.Would you be ok with a PR adding this?
The text was updated successfully, but these errors were encountered: