"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
putio: fix incorrect modtime after setting a file's modtime
Nick Craig-Wooddee6e23d3493
diff --git a/backend/putio/object.go b/backend/putio/object.goindex 86edb008f..0f31f6f65 100644--- a/backend/putio/object.go+++ b/backend/putio/object.go@@ -202,9 +202,12 @@ func (o *Object) SetModTime(ctx context.Context, modTime time.Time) (err error)if err != nil {return err}- o.modtime = modTime+ // The server stores modtimes with second precision so truncate+ // here too to keep the in-memory modtime identical to the one a+ // fresh listing returns.+ o.modtime = modTime.Truncate(time.Second)if o.file != nil {- o.file.UpdatedAt.Time = modTime+ o.file.UpdatedAt.Time = o.modtime}return nil}