mirror of
https://github.com/google/adb-sync.git
synced 2026-01-03 01:48:02 +00:00
Fix: size is only know for regular files (#23)
This commit is contained in:
3
adb-sync
3
adb-sync
@@ -582,7 +582,8 @@ class FileSyncer(object):
|
||||
with self.InterruptProtection(self.dst_fs[i], dst_name):
|
||||
if not self.dry_run:
|
||||
self.copy[i](src_name, dst_name)
|
||||
self.num_bytes += s.st_size
|
||||
if stat.S_ISREG(s.st_mode):
|
||||
self.num_bytes += s.st_size
|
||||
if not self.dry_run:
|
||||
if self.preserve_times:
|
||||
_print(b'%s-Times: accessed %s, modified %s',
|
||||
|
||||
Reference in New Issue
Block a user