1libssh2_sftp_mkdir_ex(3)            libssh2           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>
10       #include <libssh2_sftp.h>
11
12       int
13       libssh2_sftp_mkdir_ex(LIBSSH2_SFTP *sftp,
14                             const char *path, unsigned int path_len,
15                             long mode);
16
17       int
18       libssh2_sftp_mkdir(LIBSSH2_SFTP *sftp,
19                          const char *path,
20                          long mode);
21

DESCRIPTION

23       sftp - SFTP instance as returned by libssh2_sftp_init(3)
24
25       path  - full path of the new directory to create. Note that the new di‐
26       rectory's parents must all exist prior to making this call.
27
28       path_len - length of the full path of the new directory to create.
29
30       mode - directory creation mode (e.g. 0755).
31
32       Create a directory on the remote file system.
33

RETURN VALUE

35       Return 0 on success or negative on failure.  LIBSSH2_ERROR_EAGAIN  when
36       it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative num‐
37       ber, it is not really a failure per se.
38

ERRORS

40       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
41
42       LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
43
44       LIBSSH2_ERROR_SOCKET_TIMEOUT -
45
46       LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid SFTP protocol response was re‐
47       ceived  on  the  socket, or an SFTP operation caused an errorcode to be
48       returned by the server.
49

SEE ALSO

51       libssh2_sftp_open_ex(3)
52
53
54
55libssh2 0.15                      1 Jun 2007          libssh2_sftp_mkdir_ex(3)
Impressum