libssh2_sftp_opendir(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_opendir β€” the libssh2 bestie handbook πŸ’–

okay so bestie, we're in the libssh2 manual and today's main character is libssh2_sftp_opendir(3). it's a tiny little glow-up of a thing and it's gonna be so easy, i promise 🫢


✨ NAME ✨

libssh2_sftp_opendir β€” it's literally just a convenience macro that wraps up libssh2_sftp_open_ex(3) calls for you. that's it. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

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

LIBSSH2_SFTP_HANDLE *
libssh2_sftp_opendir(LIBSSH2_SFTP *sftp, const char *path);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this is a macro, and it lives in a public libssh2 header file, and underneath all that cuteness it's using the actual real function libssh2_sftp_open_ex(3). it's giving "middle manager of macros" honestly, but in the best way β€” you get the convenience without doing the extra typing πŸ’…

no cap, that's the entire description. short queen. πŸ‘‘


πŸ”₯ RETURN VALUE πŸ”₯

lowkey just go read libssh2_sftp_open_ex(3), bestie β€” that's where the answer lives. i'm not even being shady, that's genuinely what it says. 😭


πŸ’€ ERRORS πŸ’€

same energy, same answer: see libssh2_sftp_open_ex(3). the errors are all its business, not this macro's. πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

  • libssh2_sftp_open_ex(3) β€” the one doing all the actual work behind the scenes, the blueprint, the icon, the moment ⭐

ok real talk, bestie β€” this page is short but it's not missing anything, so don't go adding stuff in your head. the macro is the macro, the function is the function, and libssh2_sftp_open_ex(3) is where the details live. periodt. πŸ’–

and that's the whole page!! this lil slice of the libssh2 manual is from libssh2 1.2.4, dated 20 Feb 2010 β€” vintage but still slaying, honestly 🫢✨ mwah, go open some directories bestie πŸŽ€πŸ’œ