mirror of
https://github.com/rclone/rclone.git
synced 2026-10-10 06:55:45 -04:00
operations: make --immutable work with copyto, moveto and single file copy - fixes #4921
--immutable was only enforced by sync, so copyto, moveto, copy and move of a single file, and the operations/copyfile and operations/movefile rc calls overwrote a destination which differed from the source. Fail these with the same ErrorImmutableModified as sync, and reject --no-check-dest with --immutable as sync does, since without checking the destination it cannot be protected.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f