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

Function undecoratedDeletedPath

cmd/ls.go:338–343  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

336}
337
338func undecoratedDeletedPath(path string) (string, bool) {
339 if strings.HasPrefix(path, "<<") && strings.HasSuffix(path, ">>") {
340 return strings.TrimSuffix(strings.TrimPrefix(path, "<<"), ">>"), true
341 }
342 return path, false
343}
344
345func renderLsResults(out io.Writer, entries []files.IsMetadata, opts listOptions) error {
346 w := new(tabwriter.Writer)

Callers 1

jsonMetadataFromLsEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected