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

Function validListSort

cmd/list_options.go:57–64  ·  view source on GitHub ↗
(sortBy string)

Source from the content-addressed store, hash-verified

55}
56
57func validListSort(sortBy string) bool {
58 switch sortBy {
59 case "", "name", "size", "time", "type":
60 return true
61 default:
62 return false
63 }
64}
65
66func validListTimeField(timeField string) bool {
67 switch timeField {

Callers 1

validateListOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected