|
|
|
@ -64,7 +64,7 @@ fn is_hidden(entry: &DirEntry) -> bool {
|
|
|
|
|
.map_or(false, |f| f.starts_with('.') && f != ".")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn wanted_file(args: ¶meters::Parameters, exts: &Vec<&str>, entry: &DirEntry) -> bool {
|
|
|
|
|
fn wanted_file(args: ¶meters::Parameters, exts: &[&str], entry: &DirEntry) -> bool {
|
|
|
|
|
if !args.scan_hidden && is_hidden(entry) {
|
|
|
|
|
// skip hidden files and directories. this check is performed first because it's very lightweight.
|
|
|
|
|
return false;
|
|
|
|
|