-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support for glob with parent directory included in single string #67
Comments
I just tested what you are describing in the UI and it appears to work. Maybe I am not following your specific use case? Can you provide a code sample that fails? These are the parameters I used in the Glob tester UI: Files:
Expression: Results:
|
I mean the ability to call:
instead of having to providing working directory separately:
Is the former somehow possible? |
Oh yes I see now. I would probably try to parse the beginning of the pattern until a non-literal was found which would allow us to split the pattern into the constant part ie "c:/" and the pattern "**/*.cs" then use the existing overload to return the results. |
It would be useful if methods
Glob.Files
andGlob.Directories
would support providing only one glob with parent directory concatenated like:C:/**/*.cs
. This is something that is available in Python glob module.Would it be possible to add such functionality or would you accept PR with such functionality?
The text was updated successfully, but these errors were encountered: