mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 05:54:43 +02:00
cache: Fix Server Side Copy with Temp Upload
When wrapping a backend that supports Server Side Copy (e.g. `b2`, `s3`) and configuring the `tmp_upload_path` option, the `cache` backend would erroneously report that Server Side Copy/Move was not supported, causing operations such as file moves to fail. This change fixes this issue under these circumstances such that Server Side Copy will now be used when the wrapped backend supports it. Fixes #3206
This commit is contained in:
committed by
Nick Craig-Wood
parent
fb169a8b54
commit
19ff7c9302
@ -59,7 +59,7 @@ Note to run these commands on a running backend then see
|
||||
[backend/command](/rc/#backend/command) in the rc docs.
|
||||
`,
|
||||
RunE: func(command *cobra.Command, args []string) error {
|
||||
cmd.CheckArgs(2, 1E6, command, args)
|
||||
cmd.CheckArgs(2, 1e6, command, args)
|
||||
name, remote := args[0], args[1]
|
||||
cmd.Run(false, false, command, func() error {
|
||||
// show help if remote is a backend name
|
||||
|
Reference in New Issue
Block a user