MCPcopy
hub / github.com/rclone/rclone / readMetaData

Method readMetaData

backend/webdav/webdav.go:1415–1424  ·  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

1413//
1414// it also sets the info
1415func (o *Object) readMetaData(ctx context.Context) (err error) {
1416 if o.hasMetaData {
1417 return nil
1418 }
1419 info, err := o.fs.readMetaDataForPath(ctx, o.remote)
1420 if err != nil {
1421 return err
1422 }
1423 return o.setMetaData(info)
1424}
1425
1426// ModTime returns the modification time of the object
1427//

Callers 4

newObjectWithInfoMethod · 0.95
SizeMethod · 0.95
ModTimeMethod · 0.95
UpdateMethod · 0.95

Calls 2

setMetaDataMethod · 0.95
readMetaDataForPathMethod · 0.45

Tested by

no test coverage detected