return 0 count when media not copied

This commit is contained in:
Damien Elmes 2011-11-28 16:05:48 +09:00
parent c0e2a0ba50
commit 0032dd39c9

View file

@ -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)