MCPcopy Index your code
hub / github.com/rclone/rclone / SetModTime

Method SetModTime

backend/oracleobjectstorage/object.go:296–304  ·  view source on GitHub ↗

SetModTime sets the modification time of the local fs object

(ctx context.Context, modTime time.Time)

Source from the content-addressed store, hash-verified

294
295// SetModTime sets the modification time of the local fs object
296func (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
307func (o *Object) Storable() bool {

Callers

nothing calls this directly

Calls 2

readMetaDataMethod · 0.95
CopyMethod · 0.65

Tested by

no test coverage detected