(endpointErr *files.CreateFolderError)
| 154 | } |
| 155 | |
| 156 | func 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 | |
| 167 | func isConflictError(err error) bool { |
| 168 | return strings.Contains(err.Error(), "path/conflict") |
no outgoing calls
no test coverage detected