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

Method readMetaData

backend/googlecloudstorage/googlecloudstorage.go:1310–1320  ·  view source on GitHub ↗

readMetaData gets the metadata if it hasn't already been fetched it also sets the info

(ctx context.Context)

Source from the content-addressed store, hash-verified

1308//
1309// it also sets the info
1310func (o *Object) readMetaData(ctx context.Context) (err error) {
1311 if !o.modTime.IsZero() {
1312 return nil
1313 }
1314 object, err := o.readObjectInfo(ctx)
1315 if err != nil {
1316 return err
1317 }
1318 o.setMetaData(object)
1319 return nil
1320}
1321
1322// ModTime returns the modification time of the object
1323//

Callers 2

newObjectWithInfoMethod · 0.95
ModTimeMethod · 0.95

Calls 3

readObjectInfoMethod · 0.95
setMetaDataMethod · 0.95
IsZeroMethod · 0.80

Tested by

no test coverage detected