From d3964603327e73c9028441de9c46a2401ed3bd40 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 1 Apr 2020 13:37:57 +1000 Subject: [PATCH] ignore .DS_Store in trash https://anki.tenderapp.com/discussions/ankidesktop/40035-anki-2123-on-macos-ds_store-files-in-new-anki-trash --- rslib/src/media/check.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rslib/src/media/check.rs b/rslib/src/media/check.rs index 763997edb..43e223720 100644 --- a/rslib/src/media/check.rs +++ b/rslib/src/media/check.rs @@ -313,7 +313,12 @@ where self.maybe_fire_progress_cb()?; } + if dentry.file_name() == ".DS_Store" { + continue; + } + let meta = dentry.metadata()?; + total_files += 1; total_bytes += meta.len(); }