adb-sync
adb-sync copied to clipboard
Fix --times with current Android toolbox
When trying to use --times to push files back to a device it fails with the error:
touch: bad '20190519.083235'
INFO:root:Total: 23412 KB/s (1256329659 bytes in 52.402s)
Traceback (most recent call last):
File "./adb-sync", line 883, in <module>
main()
File "./adb-sync", line 877, in main
syncer.PerformCopies()
File "./adb-sync", line 646, in PerformCopies
self.dst_fs[i].utime(dst_name, (s.st_atime, s.st_mtime))
File "./adb-sync", line 312, in utime
raise OSError('touch failed')
OSError: touch failed
because of the current versions of toolbox used on Android devices. So this change fixes the format.
Just encountered this and implemented the exact same fix myself. Could we get this merged in so ppl don't waste effort again?
Merge please!