forked from TrueCloudLab/rclone
2b67ad17aa
A strange feature (probably bug) in the api used by the server-side copy implementation in Jottacloud backend is that if the destination file is in trash, the copy request succeeds but the destination will still be in trash! When this situation occurs in rclone, the copy command will fail with "Failed to copy: object not found" because rclone verifies that the file info in the response from the copy request is valid, and since it is marked as deleted it is treated as invalid. This commit works around this problem by looking for this situation in the response from the copy operation, and send an additional request to a built-in deduplication endpoint that will restore the file from trash. Fixes #6112 |
||
---|---|---|
.. | ||
api | ||
jottacloud.go | ||
jottacloud_internal_test.go | ||
jottacloud_test.go |