1
0
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:
nielash
2025-06-13 12:24:01 -04:00
committed by Nick Craig-Wood
parent 125c8a98bb
commit 359260c49d
2 changed files with 33 additions and 0 deletions

View File

@@ -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)