mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
don't try to delete normalized version
This commit is contained in:
parent
bd7f5787cc
commit
0fc662a919
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ def rebuildMediaDir(deck, delete=False, dirty=True):
|
|||
if not os.path.isfile(path):
|
||||
# ignore directories
|
||||
continue
|
||||
file = norm(file)
|
||||
if file not in normrefs:
|
||||
nfile = norm(file)
|
||||
if nfile not in normrefs:
|
||||
unused.append(file)
|
||||
# optionally delete
|
||||
if delete:
|
||||
|
|
Loading…
Reference in a new issue