From 1c5dae84af6a235e52eda0b22c47b1d0f9f1311e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 21 May 2012 07:51:16 +0900 Subject: [PATCH] ignore media starting with _ --- anki/media.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/anki/media.py b/anki/media.py index f61c8b2e5..fd72b126c 100644 --- a/anki/media.py +++ b/anki/media.py @@ -161,6 +161,9 @@ If the same name exists, compare checksums.""" if not os.path.isfile(path): # ignore directories continue + if file.startswith("_"): + # leading _ says to ignore file + continue nfile = norm(file) if nfile not in normrefs: unused.append(file)