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

Method ModTime

backend/googlecloudstorage/googlecloudstorage.go:1326–1333  ·  view source on GitHub ↗

ModTime returns the modification time of the object It attempts to read the objects mtime and if that isn't present the LastModified returned in the http headers

(ctx context.Context)

Source from the content-addressed store, hash-verified

1324// It attempts to read the objects mtime and if that isn't present the
1325// LastModified returned in the http headers
1326func (o *Object) ModTime(ctx context.Context) time.Time {
1327 err := o.readMetaData(ctx)
1328 if err != nil {
1329 // fs.Logf(o, "Failed to read metadata: %v", err)
1330 return time.Now()
1331 }
1332 return o.modTime
1333}
1334
1335// Returns metadata for an object
1336func metadataFromModTime(modTime time.Time) map[string]string {

Callers

nothing calls this directly

Calls 1

readMetaDataMethod · 0.95

Tested by

no test coverage detected