[src]

Crate glob

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.

MatchOptions

Configuration options to modify the behaviour of Pattern::matches_with(..)

Paths

An iterator that yields Paths from the filesystem that match a particular pattern - see the glob function for more details.

Pattern

A compiled Unix shell style pattern.

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.