1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-21 03:43:26 +00:00

webdav: don't delete files on error - fixes #3263

Previous to this change rclone deleted a file if the upload failed
half way through.

After this change we only delete the upload if the
--webdav-delete-on-error flag is set.

We set this in the serve webdav tests to make them pass.
This commit is contained in:
Nick Craig-Wood
2019-06-14 15:39:33 +01:00
parent cef51d58ac
commit 259d0bb8ce
2 changed files with 26 additions and 13 deletions

View File

@@ -62,11 +62,12 @@ func TestWebDav(t *testing.T) {
// Config for the backend we'll use to connect to the server
config := configmap.Simple{
"type": "webdav",
"vendor": "other",
"url": w.Server.URL(),
"user": testUser,
"pass": obscure.MustObscure(testPass),
"type": "webdav",
"vendor": "other",
"url": w.Server.URL(),
"user": testUser,
"pass": obscure.MustObscure(testPass),
"delete_on_error": "true",
}
return config, func() {