pub fn is_hidden(entry: &DirEntry) -> bool {
    entry
        .file_name()
        .to_str()
        .map(|s| s.starts_with("."))
        .unwrap_or(false)
}
/// Returns true if entry is hidden, irrespective of type(file or directory)
Returns true if entry is hidden, irrespective of type(file or directory)
Returns true if entry is hidden irrespective of type ( file or directory )
pub fn is_hidden(entry: &DirEntry) -> bool {
    entry
        .file_name()
        .to_str()
        .map(|s| s.starts_with("."))
        .unwrap_or(false)
}
pub fn is_hidden ( entry : & DirEntry ) -> bool { entry . file_name ( ) . to_str ( ) . map ( | s | s . starts_with ( " " ) ) . unwrap_or ( false ) }
Returns true if entry is hidden, irrespective of type(file or directory)
Returns true if entry is hidden irrespective of type ( file or directory )
entry
&DirEntry
entry
&DirEntry