libssh2_sftp_mkdir(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_mkdir(3) πŸ’–

okay bestie, pull up a chair, we're in the libssh2 manual, section 3 (that's the "library functions" section, iykyk), and today's main character is libssh2_sftp_mkdir. it's a whole vibe. let's get into it ✨


🌸 NAME 🌸

libssh2_sftp_mkdir β€” it's literally a convenience macro for libssh2_sftp_mkdir_ex(3) calls. that's the whole job. she's a shortcut, she's lowkey iconic for it πŸ’…


✨ SYNOPSIS ✨

the receipts, verbatim, no edits:

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

int
libssh2_sftp_mkdir(LIBSSH2_SFTP *sftp, const char *path,
                   long mode);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this one is a macro, not a regular function, and she lives in a public libssh2 header file β€” that's the #includes up there, she's public-facing, she's out there for everyone 🫢

and what does the macro actually do? she's using the underlying function libssh2_sftp_mkdir_ex(3) under the hood. that's it. that's the entire plot. she's the cute wrapper, libssh2_sftp_mkdir_ex(3) is the one doing the actual work. no cap πŸŽ€


πŸ’œ RETURN VALUE πŸ’œ

ngl, this page is not gonna spell it out for you β€” See libssh2_sftp_mkdir_ex(3). she said go ask her sister πŸ’…


πŸ’€ ERRORS πŸ’€

same energy, bestie: See libssh2_sftp_mkdir_ex(3). the whole error situation lives over there, fr fr 😭


🌈 SEE ALSO 🌈


not me giving you a whole macro page that just points at another page three separate times. and yet?? it's giving efficient. it's giving "don't repeat yourself." we stan a delegation queen ✨

and that's the page, bestie!! this lil slice of the libssh2 manual is from libssh2 1.2.4, dated 20 Feb 2010 β€” yes she's vintage, she's been slaying since 2010 and she's still here πŸŽ€ mwah, go make some directories πŸ’–πŸ¦‹πŸŒΈ