edition-2021
Lynne Megido 2 years ago
parent df2f924b2f
commit 2eccd1bbb2
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90

@ -64,7 +64,7 @@ fn is_hidden(entry: &DirEntry) -> bool {
.map_or(false, |f| f.starts_with('.') && f != ".")
}
fn wanted_file(args: &parameters::Parameters, exts: &Vec<&str>, entry: &DirEntry) -> bool {
fn wanted_file(args: &parameters::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;

Loading…
Cancel
Save