Skip to content

Commit

Permalink
drive: Fix SetModTime
Browse files Browse the repository at this point in the history
  • Loading branch information
ncw committed Jan 4, 2015
1 parent 78b0392 commit 5710247
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drive/drive.go
Original file line number Diff line number Diff line change
Expand Up @@ -805,11 +805,13 @@ func (o *FsObjectDrive) SetModTime(modTime time.Time) {
ModifiedDate: modTime.Format(timeFormatOut),
}
// 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 {
fs.Stats.Error()
fs.Log(o, "Failed to update remote mtime: %s", err)
}
// Update info from read data
o.setMetaData(info)
}

// Is this object storable
Expand Down

0 comments on commit 5710247

Please sign in to comment.