Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-8563: Fix SFTP RENAME with unconditional DEL #8671

Merged
merged 1 commit into from Jul 12, 2023

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
2 checks passed
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