mirror of
https://github.com/rclone/rclone.git
synced 2025-02-21 06:57:09 +08:00

Before this change rclone used a normal SFTP rename if present to implement Move. However the normal SFTP rename won't overwrite existing files. This fixes it to either use the POSIX rename extension ("posix-rename@openssh.com") or to delete the source first before renaming using the normal SFTP rename. This isn't normally a problem as rclone always removes any existing objects first, however to implement non --inplace operations we do require overwriting an existing file.