Skip to main content

pattern_dir

Function pattern_dir 

Source
pub fn pattern_dir(base: &Path, pattern: &str) -> PathBuf
Expand description

The deepest directory every match of pattern, resolved from base, lies under: its anchor_pattern joined with the pattern’s leading literal directories. Watching it recursively sees every file the pattern can ever match.