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

Method SetModTime

backend/chunker/chunker.go:2130–2135  ·  view source on GitHub ↗

SetModTime sets the modification time of the file

(ctx context.Context, mtime time.Time)

Source from the content-addressed store, hash-verified

2128
2129// SetModTime sets the modification time of the file
2130func (o *Object) SetModTime(ctx context.Context, mtime time.Time) error {
2131 if err := o.readMetadata(ctx); err != nil {
2132 return err // refuse to act on unsupported format
2133 }
2134 return o.mainChunk().SetModTime(ctx, mtime)
2135}
2136
2137// Hash returns the selected checksum of the file.
2138// If no checksum is available it returns "".

Callers

nothing calls this directly

Calls 3

readMetadataMethod · 0.95
mainChunkMethod · 0.95
SetModTimeMethod · 0.65

Tested by

no test coverage detected