Function glob::glob_with [] [src]

pub fn glob_with(
    pattern: &str,
    options: &MatchOptions
) -> Result<Paths, PatternError>

Return an iterator that produces all the Paths that match the given pattern, 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.