glob
glob copied to clipboard
Support for matching file paths against Unix shell style patterns.
Add `follow_links` option in `MatchOptions` struct to signalize when to follow symlinks when the directory is traversed. The default value is `false`.
This should resolve #23. The implementation works on both Linux and Windows for me (with the available tests). It's still very possible something broke though, so I'd appreciate it if...
Is there a plan to support string alternatives with curly braces, like `{foo,bar}program` matching `fooprogram` and `barprogram`? To avoid code duplication in the matcher, I was thinking it might be...
Would you consider allowing the use of `^` for negation in addition to `!`? gnu coreutils supports the use of `^` in addition to `!`, based on the behavior of...
Right now this isn't possible: ```rust Pattern::new("file.*").unwrap().matches_path(&PathBuf::from("/root/some/path/file.rs"); ``` And I don't see why it shouldn't be possible, even if behind an option.
Here's a recursive file list: ``` $find src src/ src/main.rs src/a/ src/a/b.rs ``` Running this program ``` extern crate glob; use std::path::Path; use glob::{Pattern,glob}; fn main() { let pattern="src/*.rs"; println!("matches...
This issue proposes adding the following methods: - `Paths::files(self) -> Files`: returns an iterator of only file types. - `Paths::dirs(self) -> Dirs`: returns an iterator of only directory types. In...
Per the original rust-lang-nursery RFC ( https://github.com/rust-lang/rfcs/blob/master/text/1242-rust-lang-crates.md ): > If the library team accepts a crate into the nursery, they are indicating an interest in ultimately advertising the crate as...
Little quality of life change that would allow you to create static glob configurations for use throughout the program, like this ```py pub const CASE_INSENSITIVE_GLOB: glob::MatchOptions = glob::MatchOptions { case_sensitive:...
As per [its documentation](https://docs.rs/glob/0.3.0/glob/struct.MatchOptions.html#method.new), MatchOptions' default values are these: ```rust MatchOptions { case_sensitive: true, require_literal_separator: false, require_literal_leading_dot: false } ``` However, its derived Default implementation gives this: ```rust MatchOptions {...