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

Function metadataFromModTime

backend/googlecloudstorage/googlecloudstorage.go:1336–1341  ·  view source on GitHub ↗

Returns metadata for an object

(modTime time.Time)

Source from the content-addressed store, hash-verified

1334
1335// Returns metadata for an object
1336func metadataFromModTime(modTime time.Time) map[string]string {
1337 metadata := make(map[string]string, 1)
1338 metadata[metaMtime] = modTime.Format(timeFormat)
1339 metadata[metaMtimeGsutil] = strconv.FormatInt(modTime.Unix(), 10)
1340 return metadata
1341}
1342
1343// SetModTime sets the modification time of the local fs object
1344func (o *Object) SetModTime(ctx context.Context, modTime time.Time) (err error) {

Callers 1

UpdateMethod · 0.85

Calls 1

FormatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…