mirror of
https://github.com/rclone/rclone.git
synced 2026-01-06 18:43:50 +00:00
operations: fix TransformFile when can't server-side copy/move
This commit is contained in:
@@ -493,6 +493,9 @@ func move(ctx context.Context, fdst fs.Fs, dst fs.Object, remote string, src fs.
|
||||
}
|
||||
}
|
||||
// Move not found or didn't work so copy dst <- src
|
||||
if origRemote != remote {
|
||||
dst = nil
|
||||
}
|
||||
newDst, err = Copy(ctx, fdst, dst, origRemote, src)
|
||||
if err != nil {
|
||||
fs.Errorf(src, "Not deleting source as copy failed: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user