SetModTime sets the modification time of the local fs object Commits the datastore
(ctx context.Context, modTime time.Time)
| 1041 | // |
| 1042 | // Commits the datastore |
| 1043 | func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error { |
| 1044 | // set custom_property 'rclone_modified' of object to modTime |
| 1045 | err := o.setCustomProperty(ctx, "rclone_modified", modTime.Format(time.RFC3339Nano)) |
| 1046 | if err != nil { |
| 1047 | return err |
| 1048 | } |
| 1049 | o.modTime = modTime |
| 1050 | return nil |
| 1051 | } |
| 1052 | |
| 1053 | // Open an object for read |
| 1054 | func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.ReadCloser, err error) { |
no test coverage detected