libssh2_sftp_stat(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_stat(3) β€” a lil page from the libssh2 manual ✨

okay so bestie, welcome to the glow-up of libssh2_sftp_stat(3). this is your girl, and she is very into SFTP, so let's get into it 🫢


🌸 NAME 🌸

libssh2_sftp_stat β€” it's a convenience macro that wraps up libssh2_sftp_fstat_ex(3) calls for you. basically it's the drive-thru version of the real function, no cap πŸ’–


✨ SYNOPSIS ✨

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

int
libssh2_sftp_stat(LIBSSH2_SFTP *sftp, const char *path,
                  LIBSSH2_SFTP_ATTRIBUTES *attrs);

look at her. gorgeous. iconic. she takes an sftp handle, a path, and a pointer to LIBSSH2_SFTP_ATTRIBUTES called attrs. chef's kiss πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, and it's honestly pretty short: this one is a macro, okay? it lives in a public libssh2 header file, and it's built on top of the underlying function libssh2_sftp_fstat_ex(3).

that's the whole vibe. the macro is the cute lil face, and libssh2_sftp_fstat_ex(3) is the one doing the actual heavy lifting behind the scenes. main character energy from both of them fr fr πŸ’…


πŸ’€ RETURN VALUE πŸ’€

ngl, no numbers here β€” you gotta go check libssh2_sftp_fstat_ex(3) for what it returns. it's all over there, bestie. πŸ‘€


πŸ“ ERRORS πŸ“

same deal, gorgeous β€” the error lore lives in libssh2_sftp_fstat_ex(3). go peek at that page. πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the page! lowkey short and sweet, but that's the whole point β€” the macro just points you at libssh2_sftp_fstat_ex(3) and minds its business 🧚

this has been libssh2 version 1.2.4, dated 20 Feb 2010 β€” so yeah, she's been iconic since 2010 and she's still serving. slay, periodt. πŸŒˆπŸ’–