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

Function jsonMetadataFromLsEntry

cmd/ls.go:326–336  ·  view source on GitHub ↗
(entry files.IsMetadata)

Source from the content-addressed store, hash-verified

324}
325
326func jsonMetadataFromLsEntry(entry files.IsMetadata) (jsonMetadata, error) {
327 result, err := jsonMetadataFromDropbox(entry)
328 if err != nil {
329 return jsonMetadata{}, err
330 }
331 if path, ok := undecoratedDeletedPath(result.PathDisplay); ok {
332 result.PathDisplay = path
333 result.Deleted = true
334 }
335 return result, nil
336}
337
338func undecoratedDeletedPath(path string) (string, bool) {
339 if strings.HasPrefix(path, "<<") && strings.HasSuffix(path, ">>") {

Callers 1

Calls 2

jsonMetadataFromDropboxFunction · 0.85
undecoratedDeletedPathFunction · 0.85

Tested by

no test coverage detected