mirror of
https://github.com/kopia/kopia.git
synced 2026-10-06 17:11:36 -04:00
Improve sftp provider logic
Tests are failing because pkg/sftp won't overwrite an existing file (Rename function) and the test is actually doing that with blobtesting.VerifyStorage. The solution is to use pkg/sftp's PosixRename function: "PosixRename renames a file using the posix-rename@openssh.com extension which will replace newname if it already exists." Additionally, the provider now creates the path on the server, if it doesn't exist.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f