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

SearchPattern unexpected behaviour for * #42

Open
onepiecefreak3 opened this issue Dec 4, 2019 · 0 comments
Open

SearchPattern unexpected behaviour for * #42

onepiecefreak3 opened this issue Dec 4, 2019 · 0 comments

Comments

@onepiecefreak3
Copy link

As the search under windows, I expect the * to match everything in the given path. So if I create a searchPattern like this:

var path = new UPath("/folder1");
var search = "*";
var pattern = SearchPattern.Parse(ref path, ref search);

I wouldn't expect it to match a path not beginning with folder1, like /folder2/test.

Is that intended behaviour or a bug? Because the code states the scenario of having the * as the search pattern as an optimized and most common case. I agree that it is the most common case, but only in combination with the pre-defined path not being ignored.

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

No branches or pull requests

1 participant