mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
don't rename/unlink files for non-local check
This commit is contained in:
parent
686c0077ea
commit
da1672d42f
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ class MediaManager(object):
|
|||
nfcFile = unicodedata.normalize("NFC", file)
|
||||
# we enforce NFC fs encoding on non-macs; on macs we'll have gotten
|
||||
# NFD so we use the above variable for comparing references
|
||||
if not isMac:
|
||||
if not isMac and local:
|
||||
if file != nfcFile:
|
||||
# delete if we already have the NFC form, otherwise rename
|
||||
if os.path.exists(nfcFile):
|
||||
|
|
|
|||
Loading…
Reference in a new issue