mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
just don't migrate if paths are the same, instead of raising an error
This commit is contained in:
parent
b3a580793e
commit
bc1526794f
1 changed files with 2 additions and 1 deletions
|
@ -2961,7 +2961,8 @@ to work with this version of Anki."""))
|
||||||
self.setupDropbox(deck)
|
self.setupDropbox(deck)
|
||||||
|
|
||||||
def migrateMedia(self, from_, to):
|
def migrateMedia(self, from_, to):
|
||||||
assert from_ != to
|
if from_ == to:
|
||||||
|
return
|
||||||
files = os.listdir(from_)
|
files = os.listdir(from_)
|
||||||
skipped = False
|
skipped = False
|
||||||
for f in files:
|
for f in files:
|
||||||
|
|
Loading…
Reference in a new issue