MCPcopy Create free account
hub / github.com/dropbox/dbxcli / getFileMetadata

Function getFileMetadata

cmd/ls.go:49–60  ·  view source on GitHub ↗

Sends a get_metadata request for a given path and returns the response

(c filesClient, path string)

Source from the content-addressed store, hash-verified

47
48// Sends a get_metadata request for a given path and returns the response
49func getFileMetadata(c filesClient, path string) (files.IsMetadata, error) {
50 arg := files.NewGetMetadataArg(path)
51
52 arg.IncludeDeleted = true
53
54 res, err := c.GetMetadataContext(currentContext(), arg)
55 if err != nil {
56 return nil, err
57 }
58
59 return res, nil
60}
61
62// Invoked by search.go
63func printFolderMetadata(w io.Writer, e *files.FolderMetadata, longFormat bool) {

Callers 3

validateRemoveTargetsFunction · 0.85
lsFunction · 0.85
prepareLsEntriesFunction · 0.85

Calls 2

currentContextFunction · 0.85
GetMetadataContextMethod · 0.65

Tested by

no test coverage detected