Function glob::glob_with [−][src]
pub fn glob_with(
pattern: &str,
options: MatchOptions
) -> Result<Paths, PatternError>
Expand description
Return an iterator that produces all the Path
s that match the given
pattern using the specified match options, which may be absolute or relative
to the current working directory.
This may return an error if the pattern is invalid.
This function accepts Unix shell style patterns as described by
Pattern::new(..)
. The options given are passed through unchanged to
Pattern::matches_with(..)
with the exception that
require_literal_separator
is always set to true
regardless of the value
passed to this function.
Paths are yielded in alphabetical order.