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

libglob: support "."/".." in file globs and fix patterns with trailing "/" #13383

Merged
merged 2 commits into from
Apr 9, 2014

Conversation

ben0x539
Copy link
Contributor

@ben0x539 ben0x539 commented Apr 7, 2014

Fixes #12930.

... also don't read the whole directory if the glob for that path
component doesn't contain any metacharacters.

Patterns like `../*.jpg` will work now, and `.*` will match both `.` and
`..` to be consistent with shell expansion.

As before: Just `*` still won't match `.` and `..`, while it will still
match dotfiles like `.git` by default.
`foo.txt/` should not return `foo.txt` if `foo.txt` is in fact a text
file and not a directory.
bors added a commit that referenced this pull request Apr 9, 2014
@bors bors closed this Apr 9, 2014
@bors bors merged commit 1700f35 into rust-lang:master Apr 9, 2014
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

Successfully merging this pull request may close these issues.

glob::glob not match "./*.rs"
3 participants