mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
ignore media starting with _
This commit is contained in:
parent
d9348e72dd
commit
1c5dae84af
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue