rclone/backend/webdav
Nick Craig-Wood d35673efc6 webdav: fix directory creation with 4shared - fixes #4428
When we run MKCOL on 4shared on a directory that already exists, this
returns a 409/Conflict error. However this error code usually means
that the intermediate collections need creating.

The actual error code to return when trying to create a directory that
already exists isn't specified in the RFC, only that an error MUST be
returned and there are already 3 statuses checked in the code.

However using 409 makes rclone's usual strategy for making directories
fail and return the 409 error.

This patch tries the MKCOL and if it returns an unrecognised error
code, then calls PROPFIND on the directory to discover whether the
directory really exists or not.

This should also cover other WebDAV servers returning other error
messages we haven't accounted for in the code yet.
2020-07-24 17:26:42 +01:00
..
api webdav: Fix free/used display for rclone about/df for certain backends - fixes #4348 2020-06-20 15:15:15 +01:00
odrvcookie doc: fix typos throughout docs and code 2020-05-20 15:54:51 +01:00
webdav.go webdav: fix directory creation with 4shared - fixes #4428 2020-07-24 17:26:42 +01:00
webdav_test.go build: implement a framework for starting test servers during tests 2020-01-18 16:47:37 +00:00