libssh2_sftp_rename(3)

πŸ“¦
version 1.11.1 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… libssh2_sftp_rename β€” from the libssh2 manual, section 3 πŸŽ€

okay bestie, pull up a chair, because this one is short and sweet and honestly a lil iconic for it. ✨


✨ NAME ✨

libssh2_sftp_rename β€” it's a convenience macro that wraps up calls to libssh2_sftp_rename_ex(3) so you don't gotta type all that extra stuff yourself 🫢


🌸 SYNOPSIS 🌸

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

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

like. look at her. three lil args and she's done. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so the tea is: this is a macro, not a real grown-up function, and she lives in a public libssh2 header file. when you call her, she's actually using the underlying function libssh2_sftp_rename_ex(3) to do the heavy lifting. it's giving delegation queen πŸ’…

no cap, that's the whole vibe β€” she's just here to make your life easier so you don't have to call libssh2_sftp_rename_ex(3) with all its options every single time. obsessed with the efficiency honestly.


πŸ’– RETURN VALUE πŸ’–

check libssh2_sftp_rename_ex(3) for that, bestie β€” she's not gonna repeat herself πŸ‘€


😭 ERRORS 😭

same deal, fr fr: see libssh2_sftp_rename_ex(3). all the deets live over there πŸ“


🌈 SEE ALSO 🌈


and that's the whole page, periodt. πŸ’€βœ¨

this lil baddie came from libssh2 1.2.4, dated 20 Feb 2010 β€” old but still serving, lowkey a vintage icon πŸŽ€πŸ’œ

mwah, go rename some files bestie 🫢🌸