libssh2_sftp_posix_rename(3)

πŸ’– libssh2_sftp_posix_rename πŸ’–

okay bestie, welcome to the libssh2 manual, and specifically to this lil baby page about libssh2_sftp_posix_rename. sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

libssh2_sftp_rename β€” a convenience macro for libssh2_sftp_posix_rename_ex(3) calls

yes girl, the name really does say libssh2_sftp_rename while the page itself is libssh2_sftp_posix_rename. i'm not fixing it, i'm just reporting it πŸ’… that's what the page says, so that's what you get.

🌸 SYNOPSIS 🌸

#include <libssh2.h>
#include <libssh2_sftp.h>

int
libssh2_sftp_posix_rename(LIBSSH2_SFTP *sftp,
                          const char *source_filename,
                          const char *destination_filename);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this is a macro, bestie. it lives in a public libssh2 header file, and what it does is use the underlying function libssh2_sftp_posix_rename_ex(3). that's it. that's the whole vibe. it's giving ✨glorified forwarding✨ and honestly? iconic. πŸ‘‘


πŸ’œ RETURN VALUE πŸ’œ

see libssh2_sftp_posix_rename_ex(3) β€” go check that one, she has the answers 🫢


πŸŽ€ ERRORS πŸŽ€

see libssh2_sftp_posix_rename_ex(3) β€” same deal, the details live over there 🌈


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, no cap. this cutie came from the libssh2 1.11.1 era, dated 9 May 2024 β€” stay hydrated, read the _ex page, and slay your file renames fr fr πŸ’–βœ¨πŸ¦‹