SetModTime sets the modification time of the local fs object
(ctx context.Context, modTime time.Time)
| 45 | |
| 46 | // SetModTime sets the modification time of the local fs object |
| 47 | func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error { |
| 48 | realpath := o.fs.realpath(o.Remote()) |
| 49 | err := o.fs.client.Chtimes(realpath, modTime, modTime) |
| 50 | if err != nil { |
| 51 | return err |
| 52 | } |
| 53 | o.modTime = modTime |
| 54 | return nil |
| 55 | } |
| 56 | |
| 57 | // Storable returns whether this object is storable |
| 58 | func (o *Object) Storable() bool { |