Skip to main content

safe_children

Function safe_children 

Source
fn safe_children(
    dir: &Path,
    is_safe: fn(&str) -> bool,
    kept: &mut Vec<(PathBuf, Keep)>,
) -> Vec<(String, PathBuf)>
Expand description

Immediate subdirectories of dir as (name, path), skipping symlinks and unsafe names (reported through kept).