rclone/backend/sftp
Nick Craig-Wood aaacfa51a0 sftp: fix move to allow overwriting existing files
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.
2023-05-09 16:28:10 +01:00
..
sftp_internal_test.go sftp: add support for about and hashsum on windows server 2022-06-08 21:14:53 +02:00
sftp_test.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
sftp_unsupported.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
sftp.go sftp: fix move to allow overwriting existing files 2023-05-09 16:28:10 +01:00
stringlock_test.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
stringlock.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00