-
Notifications
You must be signed in to change notification settings - Fork 22
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
A file which matches the pattern in multiple ways is returned multiple times #52
Comments
No this is definitely not intentional. I will see if i can determine the cause. |
@kthompson I'm new to this code, but when I append I think when you want to fix this thoroughly, the code needs a serious refactoring. Not sure what you want, so haven't created a PR (yet)... |
That would be one way to solve it but I am wondering if there is a way to prevent the traversal. How would you suggest refactoring that would enable PathTraverser to prevent traversals that result in duplicate results? |
How about just using a |
Fixed in version 1.1.7 |
Suppose I have the following file:
C:\files\a\a\a\b.txt
When I use the following code:
string[] matchingFiles = Glob.Files(@"C:\files", "**/a/**/b.txt").ToArray();
matchingFiles
result is:When I add another
a\
subfolder, it gets another item added etc.Is this by design? I would rather get distinct values.
The text was updated successfully, but these errors were encountered: