libssh2_sftp_opendir(3)
π 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 ππ
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms