MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / QueryMetadata

Method QueryMetadata

inventory/file.go:1007–1014  ·  view source on GitHub ↗
(ctx context.Context, root *ent.File)

Source from the content-addressed store, hash-verified

1005}
1006
1007func (f *fileClient) QueryMetadata(ctx context.Context, root *ent.File) error {
1008 metadata, err := f.client.File.QueryMetadata(root).All(ctx)
1009 if err != nil {
1010 return err
1011 }
1012 root.SetMetadata(metadata)
1013 return nil
1014}
1015
1016func (f *fileClient) GetChildFile(ctx context.Context, root *ent.File, ownerID int, child string, eagerLoading bool) (*ent.File, error) {
1017 query := f.childFileQuery(ownerID, false, root)

Callers

nothing calls this directly

Calls 3

SetMetadataMethod · 0.80
QueryMetadataMethod · 0.65
AllMethod · 0.45

Tested by

no test coverage detected