mirror of
https://github.com/rclone/rclone.git
synced 2025-05-31 07:16:47 +02:00
Before this change, rclone would set the modification time of an object after it had been uploaded. However with --vfs-cache-mode writes and above, the modification time of the object is already correct as the cache backing file gets set with the correct modification time before upload. Setting the modification time causes another version to be created on backends such as S3 so it should be avoided if possible. This change checks to see if the modification time needs changing and only sets it if necessary. See: https://forum.rclone.org/t/produce-2-versions-when-overwrite-an-object-in-min-io/19634