mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
google cloud storage: re-read metadata in SetModTime
This commit is contained in:
parent
cc679aa714
commit
9711a5d647
@ -503,11 +503,12 @@ func (o *FsObjectStorage) SetModTime(modTime time.Time) {
|
||||
Name: o.storage.root + o.remote,
|
||||
Metadata: metadataFromModTime(modTime),
|
||||
}
|
||||
_, err := o.storage.svc.Objects.Patch(o.storage.bucket, o.storage.root+o.remote, &object).Do()
|
||||
newObject, err := o.storage.svc.Objects.Patch(o.storage.bucket, o.storage.root+o.remote, &object).Do()
|
||||
if err != nil {
|
||||
fs.Stats.Error()
|
||||
fs.Log(o, "Failed to update remote mtime: %s", err)
|
||||
}
|
||||
o.setMetaData(newObject)
|
||||
}
|
||||
|
||||
// Is this object storable
|
||||
|
Loading…
Reference in New Issue
Block a user