Skip to main content

list_all_files

Function list_all_files 

Source
pub fn list_all_files<P: AsRef<Path>, F: Fn(&Path) -> bool>(
    path: P,
    predicate: F,
) -> Result<Vec<PathBuf>>
Expand description

Helper to list all files recursively under the given path, while filtering result (files only) with a custom predicate.