mirror of https://github.com/rclone/rclone.git
drive: Fix SetModTime
This commit is contained in:
parent
78b03929b7
commit
5710247bf6
|
@ -805,11 +805,13 @@ func (o *FsObjectDrive) SetModTime(modTime time.Time) {
|
||||||
ModifiedDate: modTime.Format(timeFormatOut),
|
ModifiedDate: modTime.Format(timeFormatOut),
|
||||||
}
|
}
|
||||||
// Set modified date
|
// Set modified date
|
||||||
_, err = o.drive.svc.Files.Update(o.id, info).SetModifiedDate(true).Do()
|
info, err = o.drive.svc.Files.Update(o.id, info).SetModifiedDate(true).Do()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fs.Stats.Error()
|
fs.Stats.Error()
|
||||||
fs.Log(o, "Failed to update remote mtime: %s", err)
|
fs.Log(o, "Failed to update remote mtime: %s", err)
|
||||||
}
|
}
|
||||||
|
// Update info from read data
|
||||||
|
o.setMetaData(info)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is this object storable
|
// Is this object storable
|
||||||
|
|
Loading…
Reference in New Issue