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

Method SetModTime

fs/object/object.go:282–285  ·  view source on GitHub ↗

SetModTime sets the metadata on the object to set the modification date

(ctx context.Context, modTime time.Time)

Source from the content-addressed store, hash-verified

280
281// SetModTime sets the metadata on the object to set the modification date
282func (o *MemoryObject) SetModTime(ctx context.Context, modTime time.Time) error {
283 o.modTime = modTime
284 return nil
285}
286
287// Open opens the file for read. Call Close() on the returned io.ReadCloser
288func (o *MemoryObject) Open(ctx context.Context, options ...fs.OpenOption) (io.ReadCloser, error) {

Callers 1

TestMemoryObjectFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestMemoryObjectFunction · 0.76