Function fast_glob::glob_match_with_brace
source · pub fn glob_match_with_brace(glob: &str, path: &str) -> bool
Expand description
Performs glob pattern matching for a glob pattern with brace expansion.
Returns true
if glob
matches path
, false
otherwise.
§Example
use fast_glob::glob_match_with_brace;
let glob = "some/**/{the,crazy}/?*.{png,txt}";
let path = "some/a/bigger/path/to/the/crazy/needle.txt";
assert!(glob_match_with_brace(glob, path));