1libssh2_sftp_last_error(3) libssh2 manual libssh2_sftp_last_error(3)
2
3
4
6 libssh2_sftp_last_error - return the last SFTP-specific error code
7
9 #include <libssh2.h> #include <libssh2_sftp.h>
10
11 unsigned long libssh2_sftp_last_error(LIBSSH2_SFTP *sftp);
12
13
15 sftp - SFTP instance as returned by libssh2_sftp_init(3)
16
17 Returns the last error code produced by the SFTP layer. Note that this
18 only returns a sensible error code if libssh2 returned LIB‐
19 SSH2_ERROR_SFTP_PROTOCOL in a previous call. Using lib‐
20 ssh2_sftp_last_error(3) without a preceeding SFTP protocol error, it
21 will return an unspecified value.
22
23
25 Current error code state of the SFTP instance.
26
27
29 libssh2_sftp_init(3)
30
31
32
33libssh2 0.15 1 Jun 2007 libssh2_sftp_last_error(3)