1 2 3 4 5 6 7
#[allow(dead_code)] pub fn walkdir_dir_entry_is_hidden(entry: &::walkdir::DirEntry) -> bool { entry.file_name() .to_str() .map(|s| s.starts_with(".")) .unwrap_or(false) }