1
mirror of https://github.com/rclone/rclone synced 2024-11-24 01:26:25 +01:00
rclone/backend/box
nielash 3c7ad8d961 box: fix server-side copying a file over existing dst - fixes #3511
Before this change, server-side copying a src file over a dst that already exists
gave `Error "item_name_in_use" (409): Item with the same name already exists`.

This change fixes the error by copying to a temporary name first, then moving it
to the real name.

There might be a more graceful way to overwrite a file during a copy, but I
didn't see one in the API docs.
https://developer.box.com/reference/post-files-id-copy/
In the meantime, this workaround is better than a critical error.

This should (hopefully) fix 8 bisync integration tests.
2024-09-29 18:37:52 -04:00
..
api box: fix performance problem reading metadata for single files 2023-11-20 18:07:05 +00:00
box_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
box.go box: fix server-side copying a file over existing dst - fixes #3511 2024-09-29 18:37:52 -04:00
upload.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00