SetModTime sets the modification time of the local fs object
(ctx context.Context, modTime time.Time)
| 294 | |
| 295 | // SetModTime sets the modification time of the local fs object |
| 296 | func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error { |
| 297 | err := o.readMetaData(ctx) |
| 298 | if err != nil { |
| 299 | return err |
| 300 | } |
| 301 | o.meta[metaMtime] = swift.TimeToFloatString(modTime) |
| 302 | _, err = o.fs.Copy(ctx, o, o.remote) |
| 303 | return err |
| 304 | } |
| 305 | |
| 306 | // Storable returns if this object is storable |
| 307 | func (o *Object) Storable() bool { |
nothing calls this directly
no test coverage detected