Skip to content

Conversation

artembilan
Copy link
Member

Fixes #8563

  • Rework the SftpSession.rename() logic to be similar to what is there in the FtpSession, for example: try to remove a remote target file before renaming.
  • Fix SftpSession.remove() to check for SftpConstants.SSH_FX_NO_SUCH_FILE response status to return false

Fixes spring-projects#8563

* Rework the `SftpSession.rename()` logic to be similar to what is there in the `FtpSession`, for example:
try to remove a remote target file before renaming.
* Fix `SftpSession.remove()` to check for `SftpConstants.SSH_FX_NO_SUCH_FILE` response status
to return `false`
@garyrussell garyrussell merged commit 9597b7a into spring-projects:main Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FileExistsMode.REPLACE not working

2 participants