Skip to main content

is_safe_candidate

Function is_safe_candidate 

Source
pub fn is_safe_candidate(path: &Path, scan_root: &Path) -> bool
Expand description

Whether path is a directory beneath scan_root that is safe to delete.

Rejects missing paths, the scan root itself, protected system directories, and anything under [SKIPPED_PREFIXES].