copyMove() function returns error in case of 409 status code
This commit is contained in:
parent
790397514e
commit
6ca20e2a70
@ -6,6 +6,7 @@ import (
|
||||
"io"
|
||||
"net/http"
|
||||
"strings"
|
||||
"errors"
|
||||
)
|
||||
|
||||
func (c *Client) req(method, path string, body io.Reader, intercept func(*http.Request)) (req *http.Response, err error) {
|
||||
@ -121,7 +122,8 @@ func (c *Client) copymove(method string, oldpath string, newpath string, overwri
|
||||
log(fmt.Sprintf(" TODO handle %s - %s multistatus result %s", method, oldpath, String(data)))
|
||||
|
||||
case 409:
|
||||
// TODO create dst path
|
||||
return errors.New("can not copy/move item [" + oldpath + "] to [" +
|
||||
newpath + "]: destination path does not exist or wrong XML content of the request")
|
||||
}
|
||||
|
||||
return newPathError(method, oldpath, s)
|
||||
|
Loading…
Reference in New Issue
Block a user