Crate glob [−] [src]
Support for matching file paths against Unix shell style patterns.
The glob
and glob_with
functions, in concert with the Paths
type, allow querying the filesystem for all files that match a particular
pattern - just like the libc glob
function (for an example see the glob
documentation). The methods on the Pattern
type provide functionality
for checking if individual paths match a particular pattern - in a similar
manner to the libc fnmatch
function
For consistency across platforms, and for Windows support, this module
is implemented entirely in Rust rather than deferring to the libc
glob
/fnmatch
functions.
Structs
GlobError |
A glob iteration error. |
MatchOptions |
Configuration options to modify the behaviour of |
Paths |
An iterator that yields |
Pattern |
A compiled Unix shell style pattern. |
PatternError |
A pattern parsing error. |
Functions
glob |
Return an iterator that produces all the Paths that match the given pattern, which may be absolute or relative to the current working directory. |
glob_with |
Return an iterator that produces all the Paths that match the given pattern, which may be absolute or relative to the current working directory. |
Type Definitions
GlobResult |
An alias for a glob iteration result. |