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
17

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

SEE ALSO

50       libssh2_sftp_opendir(3)
51
52
53
54libssh2 0.15                      1 Jun 2007          libssh2_sftp_mkdir_ex(3)
Impressum