1libssh2_sftp_unlink_ex(3)           libssh2          libssh2_sftp_unlink_ex(3)
2
3
4

NAME

6       libssh2_sftp_unlink_ex - unlink an SFTP file
7

SYNOPSIS

9       #include <libssh2.h>
10       #include <libssh2_sftp.h>
11
12       int
13       libssh2_sftp_unlink_ex(LIBSSH2_SFTP *sftp, const char *filename, unsigned int filename_len);
14
15       int
16       libssh2_sftp_unlink(LIBSSH2_SFTP *sftp, const char *filename);
17

DESCRIPTION

19       sftp - SFTP instance as returned by libssh2_sftp_init(3)
20
21       filename - Path and name of the existing filesystem entry
22
23       filename_len  -  Length of the path and name of the existing filesystem
24       entry
25
26       Unlink (delete) a file from the remote filesystem.
27

RETURN VALUE

29       Return 0 on success or negative on  failure.   It  returns  LIBSSH2_ER‐
30       ROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is
31       a negative number, it is not really a failure per se.
32

ERRORS

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

SEE ALSO

45       libssh2_sftp_init(3)
46
47
48
49libssh2 0.15                      1 Jun 2007         libssh2_sftp_unlink_ex(3)
Impressum