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