mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -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):
|
def copyTo(self, rdir):
|
||||||
ldir = self.dir()
|
ldir = self.dir()
|
||||||
|
if not os.path.exists(ldir):
|
||||||
|
return
|
||||||
for f in os.listdir(ldir):
|
for f in os.listdir(ldir):
|
||||||
src = os.path.join(ldir, f)
|
src = os.path.join(ldir, f)
|
||||||
dst = os.path.join(rdir, f)
|
dst = os.path.join(rdir, f)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue