"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
protondrive: fix incorrect modtime after uploading a file
Nick Craig-Wood1404a9f9d1b1
diff --git a/backend/protondrive/protondrive.go b/backend/protondrive/protondrive.goindex 4595ea5dc..2cd6b1f42 100644--- a/backend/protondrive/protondrive.go+++ b/backend/protondrive/protondrive.go@@ -1130,7 +1130,10 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, opo.id = linkIDo.originalSize = &fileSystemAttrs.Size- 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)o.blockSizes = fileSystemAttrs.BlockSizeso.digests = &sha1Hash