1libssh2_sftp_mkdir_ex(3)        libssh2 manual        libssh2_sftp_mkdir_ex(3)
2
3
4

NAME

6       libssh2_sftp_mkdir_ex - create a directory on the remote file system
7

SYNOPSIS

9       #include <libssh2.h> #include <libssh2_sftp.h>
10
11       int   libssh2_sftp_mkdir_ex(LIBSSH2_SFTP   *sftp,   const  char  *path,
12       unsigned int path_len, long mode);
13
14       int  libssh2_sftp_mkdir(LIBSSH2_SFTP  *sftp,  const  char  *path,  long
15       mode);
16

DESCRIPTION

18       sftp - SFTP instance as returned by libssh2_sftp_init(3)
19
20       path  -  full  path  of  the new directory to create. Note that the new
21       directory's parents must all exist priot to making this call.
22
23       path_len - length of the full path of the new directory to create.
24
25       mode - directory creation mode (e.g. 0755).
26
27       Create a directory on the remote file system.
28

RETURN VALUE

30       Return 0 on success or negative on failure.  LIBSSH2_ERROR_EAGAIN  when
31       it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative num‐
32       ber, it isn't really a failure per se.
33

ERRORS

35       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
36
37       LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
38
39       LIBSSH2_ERROR_SOCKET_TIMEOUT -
40
41       LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid  SFTP  protocol  response  was
42       received  on the socket, or an SFTP operation caused an errorcode to be
43       returned by the server.
44

SEE ALSO

46       libssh2_sftp_open_ex(3)
47
48
49
50libssh2 0.15                      1 Jun 2007          libssh2_sftp_mkdir_ex(3)
Impressum