GlobWalk
A cross platform crate for recursively walking over paths matching a Glob pattern.
Based on both walkdir &️ globset (❤), this crate inherits many goodies from both, such as limiting search depth and amount of open file descriptors.
Licensed under MIT.
Why not glob
- The
globcrate does not support having{a,b}in patterns. globwalkcan match several glob-patterns at the same time.globsearches for files in the current working directory, whereasglobwalkstarts at a specified base-dir.
Documentation
Usage
To use this crate, add globwalk as a dependency to your project's Cargo.toml:
[]
= "0.1"
Example
The following piece of code recursively find all mp3 and FLAC files:
extern crate globwalk;
use GlobWalker;
Example: Tweak walk options
extern crate globwalk;
use GlobWalker;