.DS_Store file shown as an unused media file (#3380)

* skip ds_store file

* correct capitalization

* skip ds_store file

* correct capitalization

* Update CONTRIBUTORS
This commit is contained in:
bpnguyen107 2024-08-29 04:22:23 -07:00 committed by GitHub
parent 40bcbe44bf
commit 7a0e51afc0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -214,6 +214,10 @@ impl MediaChecker<'_> {
None => continue,
};
if fname_os == ".DS_Store" {
continue;
}
// skip folders
if dentry.file_type()?.is_dir() {
out.dirs.push(disk_fname.to_string());
@ -575,6 +579,7 @@ pub(crate) mod test {
write_file(mgr.media_folder.join("foo[.jpg"), "foo")?;
write_file(mgr.media_folder.join("_under.jpg"), "foo")?;
write_file(mgr.media_folder.join("unused.jpg"), "foo")?;
write_file(mgr.media_folder.join(".DS_Store"), ".DS_Store")?;
let (output, report) = {
let mut checker = col.media_checker()?;