Skip to content

Conversation

MichaelBuckley
Copy link
Contributor

This commit adds a new function, libssh2_sftp_posix_rename_ex, which implements the posix-rename@openssh.com extension.

If the server does not support this extension, the function will return LIBSSH2_FX_OP_UNSUPPORTED and it will be up to the user to recover, possibly by calling libssh2_sftp_rename.

@MichaelBuckley MichaelBuckley force-pushed the posix-rename branch 2 times, most recently from d030545 to a27185c Compare May 9, 2024 23:06
@vszakats vszakats changed the title Implement posix-rename@openssh.com sftp: implement posix-rename@openssh.com Jun 26, 2024
MichaelBuckley and others added 5 commits June 26, 2024 16:38
This commit adds a new function, libssh2_sftp_posix_rename_ex,
which implements the posix-rename@openssh.com extension.

If the server does not support this extension, the function will
return LIBSSH2_FX_OP_UNSUPPORTED and it will be up to the user to
recover, possibly by calling libssh2_sftp_rename.
@MichaelBuckley
Copy link
Contributor Author

👍 to bumping to size_t.

@vszakats vszakats closed this in fb65274 Jun 26, 2024
@vszakats
Copy link
Member

Thanks, it's merged now!

agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
Add a new function `libssh2_sftp_posix_rename_ex()` and
`libssh2_sftp_posix_rename()`, which implement
the posix-rename@openssh.com extension.

If the server does not support this extension, the function returns
`LIBSSH2_FX_OP_UNSUPPORTED` and it's up to the user to recover, possibly
by calling `libssh2_sftp_rename()`.

Co-authored-by: Viktor Szakats (bump to size_t)
Closes libssh2#1386
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants