Crate globwalk
Recursively find files in a directory using globs.
Features include
gitignore's extended glob syntax- Control over symlink behavior
- Control depth walked
- Control order results are returned
Examples
Finding image files in the current directory.
extern crate globwalk;
# include!;
use fs;
#
#
Advanced Globbing
By using one of the constructors of globwalk::GlobWalker, it is possible to alter the
base-directory or add multiple patterns.
extern crate globwalk;
# include!;
use fs;
#
#
Structs
- FileType Possible file type filters. Constants can be OR'd to filter for several types at a time.
- GlobError Error from parsing globs.
- GlobWalker An iterator which emits glob-matched patterns.
- GlobWalkerBuilder An iterator for recursively yielding glob matches.
Functions
-
glob
Construct a new
GlobWalkerwith a glob pattern. -
glob_builder
Construct a new
GlobWalkerBuilderwith a glob pattern.