MCPcopy
hub / github.com/rclone/rclone / GetMetadata

Function GetMetadata

fs/metadata.go:69–75  ·  view source on GitHub ↗

GetMetadata from an DirEntry If the object has no metadata then metadata will be nil

(ctx context.Context, o DirEntry)

Source from the content-addressed store, hash-verified

67//
68// If the object has no metadata then metadata will be nil
69func GetMetadata(ctx context.Context, o DirEntry) (metadata Metadata, err error) {
70 do, ok := o.(Metadataer)
71 if !ok {
72 return nil, nil
73 }
74 return do.Metadata(ctx)
75}
76
77// mapItem descripts the item to be mapped
78type mapItem struct {

Callers 13

TestDirectoryMetadataMethod · 0.92
TestMetadataMapperMethod · 0.92
ObjectFunction · 0.92
statMetadataMethod · 0.92
memory.goFile · 0.92
loadMetadataFunction · 0.92
IncludeObjectMethod · 0.92
rcatMethod · 0.92
TestRcatMetadataFunction · 0.92
TestRcatSizeMetadataFunction · 0.92
entryMethod · 0.92

Calls 1

MetadataMethod · 0.65

Tested by 5

TestDirectoryMetadataMethod · 0.74
TestMetadataMapperMethod · 0.74
TestRcatMetadataFunction · 0.74
TestRcatSizeMetadataFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…