fn filter(path: &Path) -> bool