Skip to content

add the possibility to ignore folders#14

Open
germtb wants to merge 2 commits intooleics:masterfrom
germtb:master
Open

add the possibility to ignore folders#14
germtb wants to merge 2 commits intooleics:masterfrom
germtb:master

Conversation

@germtb
Copy link

@germtb germtb commented Oct 26, 2016

Just an idea of how to ignore folders, which can mean a performance benefit when dealing with things like node_modules or .git

} else {
self.total += 1;
if(s.isDirectory()) {
if (self.ignoredFolders && self.ignoredFolders.some(f => contains(p, f))) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

breaks compatibility with lower but stable node-versions.

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

Successfully merging this pull request may close these issues.

2 participants