mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
don't die if deck has no media folder
This commit is contained in:
parent
8bb26aaf74
commit
5ac6cc7a36
1 changed files with 2 additions and 0 deletions
|
|
@ -168,6 +168,8 @@ If the same name exists, compare checksums."""
|
|||
|
||||
def copyTo(self, rdir):
|
||||
ldir = self.dir()
|
||||
if not os.path.exists(ldir):
|
||||
return
|
||||
for f in os.listdir(ldir):
|
||||
src = os.path.join(ldir, f)
|
||||
dst = os.path.join(rdir, f)
|
||||
|
|
|
|||
Loading…
Reference in a new issue