2007-06-13 16:51:10 +04:00
|
|
|
.\" $Id: libssh2_sftp_mkdir_ex.3,v 1.4 2007/06/13 12:51:11 jehousley Exp $
|
2007-04-22 23:51:53 +04:00
|
|
|
.\"
|
|
|
|
.TH libssh2_sftp_mkdir_ex 3 "16 Apr 2007" "libssh2 0.15" "libssh2 manual"
|
|
|
|
.SH NAME
|
|
|
|
libssh2_sftp_mkdir_ex - create a directory on the remote file system
|
|
|
|
.SH SYNOPSIS
|
|
|
|
#include <libssh2.h>
|
|
|
|
#include <libssh2_sftp.h>
|
|
|
|
|
|
|
|
int libssh2_sftp_mkdir_ex(LIBSSH2_SFTP *sftp, const char *path,
|
|
|
|
unsigned int path_len, long mode);
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
\fIsftp\fP SFTP instance as returned by \fIlibssh2_sftp_init(3)\fP.
|
|
|
|
|
|
|
|
\fIpath\fP full path of the new directory to create. Note that the new
|
|
|
|
directory's parents must all exist priot to making this call.
|
|
|
|
|
|
|
|
\fIpath_len\fP length of the full path of the new directory to create.
|
|
|
|
|
|
|
|
\fImode\fP directory creation mode (e.g. 0755).
|
|
|
|
|
|
|
|
.SH RETURN VALUE
|
2007-06-07 20:01:12 +04:00
|
|
|
0 on success, or -1 on failure. It returns
|
2007-06-08 17:33:08 +04:00
|
|
|
LIBSSH2_ERROR_EAGAIN when it would otherwise block. While
|
|
|
|
LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se.
|
2007-06-13 16:51:10 +04:00
|
|
|
.SH SEE ALSO
|
2007-04-22 23:51:53 +04:00
|
|
|
.BR libssh2_sftp_opendir(3)
|