glob
glob copied to clipboard
Support for matching file paths against Unix shell style patterns.
Background: While working with cargo, I've noticed that it takes ~30s to `cargo clean -p` with large enough target directory (~200GB). Under a profiler, it turned out that most of...
This patch introduces the capability to implement custom iterators for file system traversal. This flexibility is particularly beneficial for applications requiring specialized handling of file systems, such as iterating over...
I'm parsing a file format which uses glob patterns in C. The C glob function on unix does not support `**`. Instead, a series of consecutive `*` is the same...
Closes #116. This feature has some interesting history. Let's start with the source of everything. Here's POSIX: > If an open bracket introduces a bracket expression as in XBD [RE...
Apply various style fixes found by Clippy: - Do not deconstruct an error to rebuild it right after - Remove useless `as usize` - Use char rather than &str as...
From the documentation: > which may be absolute or relative to the current working directory. I'd like to be able to say something like `glob_from(path_like_thing, "glob_pattern")`.
I would like to be able to serialize and deserialize `Pattern` with serde. It is of course always possible with the newtype pattern, but it would be nice if this...
I tried to use a pretty basic pattern, and got the following crash (ran with `RUST_BACKTRACE=1`): ``` thread 'main' panicked at C:\Users\cleme\.cargo\registry\src\index.crates.io-6f17d22bba15001f\glob-0.3.1\src\lib.rs:218:32: byte index 14 is out of bounds of...
### Currently `glob` depends on `fs`. But, there seems no async glob. ### Feat async glob ### Extra Default to `async`, like https://www.npmjs.com/package/glob ```rust use glob::{glob, globSync}; ``` Or default...
If you have a path `C:\foo*`, it works, but if you have a path with `\\?\C:\foo*`, it doesn't return anything. The `\\?\` is a valid path and works in other...