-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expand: work around incorrect globbing error
v3, currently in the master.v3 branch, doesn't have this bug as the globbing code that calls ReadDir was refactored. This older code performs two ReadDir calls, and one of them is run even if the current potential glob path is not a dir. This can be a problem if one performs a glob like "*/foo" and the file "bar" exists; we should skip it, instead of erroring because it's not a directory. Fix that in a simple way in v2, and add a regression test. Fixes #347.
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters