glob
glob copied to clipboard
Support for matching file paths against Unix shell style patterns.
hi, i published [path-glob](http://flying-sheep.github.io/path-glob/path_glob/trait.Glob.html) because i was missing it. any reason why this isn’t part of this crate? idk if it’s a bug or if i did sth. wrong, but...
Removed in https://github.com/rust-lang/glob/pull/32 because support isn't added yet to `std::path`.
currently, glob functions only take `&str`. changing this to `impl AsRef` would be a trivial and nonbreaking change that makes usage easier and is almost always prefered for functions that...
OS: windows11 rustc: rustc 1.78.0 (9b00956e5 2024-04-29) cargo: cargo 1.78.0 (54d8815d0 2024-03-26) --- I had noticed that `glob="=0.3.1"` crate cannot correctly fetch with the partern `r"\\?\E:\Codes\Source\cargo\crates\*"`.  The issue-recur steps:...
Drop the path if UTF-8 validation fails and is required for string comparison, instead of crashing. Add a test exhibiting the problem (fixed with this change). Note that with `require_literal_leading_dot:...
Symlinks can cause the glob mechanism to enter an infinite loop. One approach to limit this is to opt out from following links (as suggested in https://github.com/rust-lang/glob/issues/62), and another one...
I want to match the following pattern: `C:\Users\*\path\to\program.exe` I expect it to match with `C:\Users\hedwigz\path\to\program.exe` but shouldn't match with: `C:\Users\hedwigz\another\path\to\program.exe` But feeding this straight to glob pattern does not work...
https://github.com/rust-lang/glob/pull/144 mentioned adding a `sort_paths: bool` to `MatchOptions`, and it would be very nice to have a way to specify the root directory like [`python`](https://docs.python.org/3/library/glob.html#glob.glob). To have forward compatibility with...
## 🤖 New release * `glob`: 0.3.2 -> 0.3.3 (✓ API compatible changes) Changelog ## [0.3.3](https://github.com/rust-lang/glob/compare/v0.3.2...v0.3.3) - 2025-01-04 ### Other - Fix version numbers and some formatting - Run clippy...