1
0
mirror of https://github.com/google/adb-sync.git synced 2026-01-03 09:58:01 +00:00

Fix: size is only know for regular files (#23)

This commit is contained in:
cryptogopher
2018-11-27 16:58:02 +01:00
committed by divVerent
parent b8813dc214
commit fd6a98cfba

View File

@@ -582,6 +582,7 @@ class FileSyncer(object):
with self.InterruptProtection(self.dst_fs[i], dst_name):
if not self.dry_run:
self.copy[i](src_name, dst_name)
if stat.S_ISREG(s.st_mode):
self.num_bytes += s.st_size
if not self.dry_run:
if self.preserve_times: