fn is_hidden(entry: &DirEntry) -> bool {
    entry.file_name()
         .to_str()
         .map(|s| s.starts_with(".") && s != ".")
         .unwrap_or(false)
}
/// This function is used by the capture function to ignore hidden folders and files.
This function is used by the capture function to ignore hidden folders and files.
This function is used by the capture function to ignore hidden folders and files .
fn is_hidden(entry: &DirEntry) -> bool {
    entry.file_name()
         .to_str()
         .map(|s| s.starts_with(".") && s != ".")
         .unwrap_or(false)
}
fn is_hidden ( entry : & DirEntry ) -> bool { entry . file_name ( ) . to_str ( ) . map ( | s | s . starts_with ( " " ) && s != " " ) . unwrap_or ( false ) }
This function is used by the capture function to ignore hidden folders and files.
This function is used by the capture function to ignore hidden folders and files .
entry
&DirEntry
entry
&DirEntry