"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
vfs: don't set modification time if it was already correct
Nick Craig-Woodc387eb8c09b0
diff --git a/vfs/file.go b/vfs/file.goindex 947f576de..f06b35bb1 100644--- a/vfs/file.go+++ b/vfs/file.go@@ -382,6 +382,13 @@ func (f *File) _applyPendingModTime() error {return errors.New("Cannot apply ModTime, file object is not available")}+ dt := f.pendingModTime.Sub(f.o.ModTime(context.Background()))+ modifyWindow := f.o.Fs().Precision()+ if dt < modifyWindow && dt > -modifyWindow {+ fs.Debugf(f.o, "Not setting pending mod time %v as it is already set", f.pendingModTime)+ return nil+ }+// set the time of the objecterr := f.o.SetModTime(context.TODO(), f.pendingModTime)switch err {