Skip to content

Commit

Permalink
Merge pull request #36 from Gilnaa/readme-point-to-glob
Browse files Browse the repository at this point in the history
Clarify README.md to point to glob
  • Loading branch information
Gilnaa authored Dec 23, 2023
2 parents 0e34ce7 + d7a5003 commit bf54492
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@

Recursively find files in a directory using globs.

Based on both `walkdir` & `ignore` (❤), this crate inherits many goodies from
both, such as limiting search depth and amount of open file descriptors.
This crate is now in a perpetual maintnance mode and new users should probably cosider using [`glob`](https://crates.io/crates/glob/).

Licensed under MIT.
### Comparison to the `glob` crate ###

### Why not `glob` ###
This crate was origially written years ago, when [`glob`](https://crates.io/crates/glob/) was a very differet crate,
before it was adopted by the rust-lang org.

Nowadays `glob` is much better, and overall better maintained,
but there are a few features that it does not seem to have (based on [glob 0.3.1](https://docs.rs/glob/0.3.1/src/glob/lib.rs.html#466)):

- The `glob` crate does not support having `{a,b}` in patterns.
- `globwalk` can match several glob-patterns at the same time.
- `globwalk` supports excluding results with `!`.
- `globwalk` supports excluding results with `!`. (negative patterns)
- `glob` searches for files in the current working directory, whereas `globwalk` starts at a specified base-dir.

### Usage ###
Expand Down

0 comments on commit bf54492

Please sign in to comment.