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

don't traverse excluded folders to avoid PathTooLongException #287

Closed
wants to merge 2 commits into from
Closed

don't traverse excluded folders to avoid PathTooLongException #287

wants to merge 2 commits into from

Conversation

superyyrrzz
Copy link
Contributor

@chenkennt
Copy link
Contributor

👍

@@ -34,9 +34,15 @@ private static IEnumerable<string> GetFilesCore(string cwd, IEnumerable<GlobMatc

private static IEnumerable<string> GetFilesFromSubfolder(string baseDirectory, string cwd, IEnumerable<GlobMatcher> globs, IEnumerable<GlobMatcher> excludeGlobs)
{
var relativePath = GetRelativeFilePath(cwd, baseDirectory);
Copy link
Contributor

Choose a reason for hiding this comment

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

When I wanna exclude node_modules folder? should it be node_modules/ instead of node_modules/**? Consider the following case: exclude: **/node1, while there are folder node1 and file a/node2, folder node1 should not be excluded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vicancy fixed. Now both node_modules/ and node_modules/** can work, and only node_modules/ can be used to avoid PathTooLongException.

@vicancy
Copy link
Contributor

vicancy commented May 5, 2016

👍

@superyyrrzz
Copy link
Contributor Author

committed in 22dcba0

@superyyrrzz superyyrrzz closed this May 6, 2016
@superyyrrzz superyyrrzz deleted the fix#156 branch May 6, 2016 07:44
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.

PathTooLongException
4 participants