Function fif::files::wanted_file
source · pub fn wanted_file(
entry: &DirEntry,
exts: Option<&BTreeSet<&str>>,
exclude: Option<&BTreeSet<&str>>,
scan_opts: &ScanOpts
) -> bool
Expand description
Returns true
if a file matches the given criteria. This means checking whether the file’s extension appears in
exts
(if specified), potentially skipping over hidden files, and so on.