log mediaChangesZip()

This commit is contained in:
Damien Elmes 2014-07-04 18:14:45 +09:00
parent a93c3423e3
commit 014787c4cb

View file

@ -454,10 +454,12 @@ create table meta (dirMod int, lastUsn int); insert into meta values (0, 0);
normname = unicodedata.normalize("NFC", fname)
if csum:
self.col.log("+media zip", fname)
z.write(fname, str(c))
meta.append((normname, str(c)))
sz += os.path.getsize(fname)
else:
self.col.log("-media zip", fname)
meta.append((normname, ""))
if sz >= SYNC_ZIP_SIZE: