Skip to main content

expand_directory_pattern

Function expand_directory_pattern 

Source
pub fn expand_directory_pattern(pattern: &str) -> Vec<String>
Expand description

Expands directory-style patterns to also match files within them. Pattern “dir/path” becomes [“dir/path”, “dir/path/**”] to match both the directory itself and all contents recursively.

Patterns containing glob characters (*, ?, [) are returned unchanged.