libssh2_sftp_readdir(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_readdir β€” the lil' shortcut that calls libssh2_sftp_readdir_ex(3) for you πŸ’–

okay bestie, quick vibe check: this is a page from the libssh2 manual, and it's literally just the cozy lil' convenience wrapper energy you need. no cap.


✨ NAME ✨

libssh2_sftp_readdir β€” convenience macro for libssh2_sftp_readdir_ex(3) calls 🫢


✨ SYNOPSIS ✨

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

int
libssh2_sftp_readdir(LIBSSH2_SFTP_HANDLE *handle,
                     char *buffer, size_t buffer_maxlen,
                     LIBSSH2_SFTP_ATTRIBUTES *attrs);

✨ DESCRIPTION ✨

so here's the tea β˜• β€” this one is a macro, and it lives in a public libssh2 header file. it's not doing anything wild on its own; it's just using the underlying function libssh2_sftp_readdir_ex(3) underneath. the way that it's literally just a glow-up shortcut and the real work happens over in _ex. iconic behavior honestly πŸ’…


✨ RETURN VALUE ✨

see libssh2_sftp_readdir_ex(3) πŸ‘€


✨ ERRORS ✨

see libssh2_sftp_readdir_ex(3) 😭

fr fr, everything juicy about what comes back and what can go wrong lives on the _ex page. this one is just the pretty front door.

✨ SEE ALSO ✨


and that's the whole page, bestie β€” short, sweet, and it ate πŸ’…

mwah, this was libssh2 version 1.2.4, dated 20 Feb 2010 πŸŽ€ sending you the softest little terminal kisses, go read the _ex page for the real details πŸ‘‘βœ¨