"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
drive: Fix SetModTime
Nick Craig-Wood5710247bf65e
diff --git a/drive/drive.go b/drive/drive.goindex 0a63b5480..83a8a5da9 100644--- a/drive/drive.go+++ b/drive/drive.go@@ -805,11 +805,13 @@ func (o *FsObjectDrive) SetModTime(modTime time.Time) {ModifiedDate: modTime.Format(timeFormatOut),}// Set modified date- _, err = o.drive.svc.Files.Update(o.id, info).SetModifiedDate(true).Do()+ info, err = o.drive.svc.Files.Update(o.id, info).SetModifiedDate(true).Do()if err != nil {fs.Stats.Error()fs.Log(o, "Failed to update remote mtime: %s", err)}+ // Update info from read data+ o.setMetaData(info)}// Is this object storable