mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 14:39:24 +08:00
webdav: if MKCOL fails with 423 Locked assume the directory exists
This fixes the integration tests with owncloud
This commit is contained in:
parent
a0016e00d1
commit
8217f361cc
|
@ -649,7 +649,8 @@ func (f *Fs) mkdir(dirPath string) error {
|
|||
err := f._mkdir(dirPath)
|
||||
if apiErr, ok := err.(*api.Error); ok {
|
||||
// already exists
|
||||
if apiErr.StatusCode == http.StatusMethodNotAllowed || apiErr.StatusCode == http.StatusNotAcceptable {
|
||||
// owncloud returns 423/StatusLocked if the create is already in progress
|
||||
if apiErr.StatusCode == http.StatusMethodNotAllowed || apiErr.StatusCode == http.StatusNotAcceptable || apiErr.StatusCode == http.StatusLocked {
|
||||
return nil
|
||||
}
|
||||
// parent does not exist
|
||||
|
|
Loading…
Reference in New Issue
Block a user