mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
return 0 count when media not copied
This commit is contained in:
parent
c0e2a0ba50
commit
0032dd39c9
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ If the same name exists, compare checksums."""
|
||||||
"Copy media to RDIR. Return number of files copied."
|
"Copy media to RDIR. Return number of files copied."
|
||||||
ldir = self.dir()
|
ldir = self.dir()
|
||||||
if not os.path.exists(ldir):
|
if not os.path.exists(ldir):
|
||||||
return
|
return 0
|
||||||
cnt = 0
|
cnt = 0
|
||||||
for f in os.listdir(ldir):
|
for f in os.listdir(ldir):
|
||||||
src = os.path.join(ldir, f)
|
src = os.path.join(ldir, f)
|
||||||
|
|
Loading…
Reference in a new issue