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

Function entryPath

cmd/format.go:82–92  ·  view source on GitHub ↗
(e files.IsMetadata)

Source from the content-addressed store, hash-verified

80}
81
82func entryPath(e files.IsMetadata) string {
83 switch f := e.(type) {
84 case *files.FileMetadata:
85 return f.PathDisplay
86 case *files.FolderMetadata:
87 return f.PathDisplay
88 case *files.DeletedMetadata:
89 return f.PathDisplay
90 }
91 return ""
92}
93
94func entrySize(e files.IsMetadata) uint64 {
95 if f, ok := e.(*files.FileMetadata); ok {

Callers 7

TestSortEntriesByNameFunction · 0.85
TestSortEntriesBySizeFunction · 0.85
TestSortEntriesByTimeFunction · 0.85
TestSortEntriesByTypeFunction · 0.85
TestSortEntriesReverseFunction · 0.85
TestSortEntriesNoSortFunction · 0.85
compareLessFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestSortEntriesByNameFunction · 0.68
TestSortEntriesBySizeFunction · 0.68
TestSortEntriesByTimeFunction · 0.68
TestSortEntriesByTypeFunction · 0.68
TestSortEntriesReverseFunction · 0.68
TestSortEntriesNoSortFunction · 0.68