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

This commit is contained in:
cryptogopher
2018-11-27 07:58:02 -08:00
committed by divVerent
parent b8813dc214
commit fd6a98cfba
+1
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: