Nick Craig-Wood c387eb8c09 vfs: don't set modification time if it was already correct
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
2021-03-16 13:31:47 +00:00
..
2020-10-14 15:21:31 +01:00
2019-04-15 21:49:58 +01:00
2020-11-26 16:40:12 +00:00
2020-10-14 15:21:31 +01:00
2020-10-28 18:16:23 +00:00