1libssh2_sftp_rmdir_ex(3) libssh2 manual libssh2_sftp_rmdir_ex(3)
2
3
4
6 libssh2_sftp_rmdir_ex - remove an SFTP directory
7
9 #include <libssh2.h>
10 #include <libssh2_sftp.h>
11
12 int libssh2_sftp_rmdir_ex(LIBSSH2_SFTP *sftp, const char *path,
13 unsigned int path_len);
14
16 Remove a directory from the remote file system.
17
18 sftp - SFTP instance as returned by libssh2_sftp_init(3)
19
20 sourcefile - Full path of the existing directory to remove.
21
22 sourcefile_len - Length of the full path of the existing directory to
23 remove.
24
26 Return 0 on success or negative on failure. It returns LIB‐
27 SSH2_ERROR_EAGAIN when it would otherwise block. While LIB‐
28 SSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per
29 se.
30
32 LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
33
34 LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
35
36 LIBSSH2_ERROR_SOCKET_TIMEOUT -
37
38 LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid SFTP protocol response was
39 received on the socket, or an SFTP operation caused an errorcode to be
40 returned by the server.
41
43 libssh2_sftp_init(3)
44
45
46
47libssh2 0.15 1 Jun 2007 libssh2_sftp_rmdir_ex(3)