1 2 3 4 5 6 7 8
use walkdir::DirEntry; pub fn is_hidden(entry: &DirEntry) -> bool { entry .file_name() .to_str() .map(|s| s.starts_with('.')) .unwrap_or(false) }