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

Function setPathDisplayAsDeleted

cmd/ls.go:96–105  ·  view source on GitHub ↗
(metadata files.IsMetadata)

Source from the content-addressed store, hash-verified

94}
95
96func setPathDisplayAsDeleted(metadata files.IsMetadata) {
97 switch item := metadata.(type) {
98 case *files.FileMetadata:
99 item.PathDisplay = fmt.Sprintf(deletedItemFormatString, item.PathDisplay)
100 case *files.FolderMetadata:
101 item.PathDisplay = fmt.Sprintf(deletedItemFormatString, item.PathDisplay)
102 case *files.DeletedMetadata:
103 item.PathDisplay = fmt.Sprintf(deletedItemFormatString, item.PathDisplay)
104 }
105}
106
107func ls(cmd *cobra.Command, args []string) (err error) {
108

Callers 2

prepareLsEntriesFunction · 0.85

Calls

no outgoing calls

Tested by 1