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

Function makeRelocationArg

cmd/root.go:163–176  ·  view source on GitHub ↗
(s string, d string)

Source from the content-addressed store, hash-verified

161}
162
163func makeRelocationArg(s string, d string) (arg *files.RelocationArg, err error) {
164 src, err := validatePath(s)
165 if err != nil {
166 return
167 }
168 dst, err := validatePath(d)
169 if err != nil {
170 return
171 }
172
173 arg = files.NewRelocationArg(src, dst)
174
175 return
176}
177
178func tokenType(cmd *cobra.Command) string {
179 if cmd.Parent().Name() == "team" {

Callers 3

cpFunction · 0.85
mvFunction · 0.85
TestMakeRelocationArgFunction · 0.85

Calls 1

validatePathFunction · 0.85

Tested by 1

TestMakeRelocationArgFunction · 0.68