mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -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):
|
if not os.path.isfile(path):
|
||||||
# ignore directories
|
# ignore directories
|
||||||
continue
|
continue
|
||||||
file = norm(file)
|
nfile = norm(file)
|
||||||
if file not in normrefs:
|
if nfile not in normrefs:
|
||||||
unused.append(file)
|
unused.append(file)
|
||||||
# optionally delete
|
# optionally delete
|
||||||
if delete:
|
if delete:
|
||||||
|
|
Loading…
Reference in a new issue