mirror of
https://github.com/rclone/rclone.git
synced 2026-09-25 15:26:13 -04:00
The objects returned from Put, Move and Update kept the caller's full nanosecond precision modtime (which write responses echo back) while the server stores millisecond precision, so until the object was re-read the modtime did not match what a fresh listing would report. Update also discarded the upload response so the object had no SHA256 checksum until re-read. This broke wrappers which compare exact modtimes and hashes, such as the hasher backend's fingerprint and the VFS cache. Truncate the modtime to millisecond precision to match what the server stores and populate the object from the upload response.