"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
webdav: fix incorrect modtime after setting a file's modtime
Nick Craig-Woodd1fcbadc1f9b
diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.goindex eec9c9e13..172f2c6ae 100644--- a/backend/webdav/webdav.go+++ b/backend/webdav/webdav.go@@ -1499,8 +1499,11 @@ func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error {}// FIXME check if response is validif len(result.Responses) == 1 && result.Responses[0].Props.StatusOK() {- // update cached modtime- o.modTime = modTime+ // update cached modtime - the PROPPATCH sets it 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)return nil}// got an error, but it's possible it actually worked, so double-check