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