Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

drive: fix crash on failed to update remote mtime - fixes #36

Nick Craig-Woodc03d6a1ec315
diff --git a/drive/drive.go b/drive/drive.go
index ae43e7150..9cae15742 100644
--- a/drive/drive.go
+++ b/drive/drive.go
@@ -900,6 +900,7 @@ func (o *FsObjectDrive) SetModTime(modTime time.Time) {
if err != nil {
fs.Stats.Error()
fs.Log(o, "Failed to update remote mtime: %s", err)
+ return
}
// Update info from read data
o.setMetaData(info)