adb-sync icon indicating copy to clipboard operation
adb-sync copied to clipboard

Fix --times with current Android toolbox

Open mydongistiny opened this issue 5 years ago • 2 comments

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.

mydongistiny avatar May 21 '19 10:05 mydongistiny

Just encountered this and implemented the exact same fix myself. Could we get this merged in so ppl don't waste effort again?

lingnand avatar Sep 30 '19 19:09 lingnand

Merge please!

rubaboo avatar Dec 05 '19 08:12 rubaboo