From da1672d42f9490e1dcf481c4a29671bdecbfccf6 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 17 Oct 2013 17:59:26 +0900 Subject: [PATCH] don't rename/unlink files for non-local check --- anki/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/media.py b/anki/media.py index 1b1bea5aa..5818770d4 100644 --- a/anki/media.py +++ b/anki/media.py @@ -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):