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

Function createFolderEndpointConflictTag

cmd/mkdir.go:156–165  ·  view source on GitHub ↗
(endpointErr *files.CreateFolderError)

Source from the content-addressed store, hash-verified

154}
155
156func createFolderEndpointConflictTag(endpointErr *files.CreateFolderError) (string, bool) {
157 if endpointErr == nil ||
158 endpointErr.Tag != files.CreateFolderErrorPath ||
159 endpointErr.Path == nil ||
160 endpointErr.Path.Tag != files.WriteErrorConflict ||
161 endpointErr.Path.Conflict == nil {
162 return "", false
163 }
164 return endpointErr.Path.Conflict.Tag, true
165}
166
167func isConflictError(err error) bool {
168 return strings.Contains(err.Error(), "path/conflict")

Callers 1

createFolderConflictTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected