MCPcopy
hub / github.com/rclone/rclone / SetModTime

Method SetModTime

backend/yandex/yandex.go:1043–1051  ·  view source on GitHub ↗

SetModTime sets the modification time of the local fs object Commits the datastore

(ctx context.Context, modTime time.Time)

Source from the content-addressed store, hash-verified

1041//
1042// Commits the datastore
1043func (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
1054func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.ReadCloser, err error) {

Callers 1

UpdateMethod · 0.95

Calls 2

setCustomPropertyMethod · 0.95
FormatMethod · 0.80

Tested by

no test coverage detected