-
Notifications
You must be signed in to change notification settings - Fork 33
add exclusion path in the filter #36
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
Conversation
Please merge! |
No, not work for the moment. |
Can I help with this PR? I think you are just not matching the ANT matchers, right? |
I need to restart this PR because there are a NullPointerException. I'm gonna try to do it today. But If you want participate not problem. |
} | ||
} | ||
return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should be able to simply write something like return !listExcludedPath.contains(p.toFile().getPath()) instead of the loop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To also improve the search, you should use a SortedSet instead of a List.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this PR is revived, I wonder if the test should not be changed to p.toFile().getPath().startsWith(s) instead of the strict equality.
In that case, you may want to use streams to reduce the amount of code.
@thibaultfalque should this PR be merged? |
Yes it's possible if you are ok with the last correction. |
Add exclusion path in the filter of Files.walk: #35