Mark Roden wrote:
> Essentially, the server returns an error code, '2'.
The server sometimes also returns a text message.
If this is indeed the error code from the server then it should be
well defined in the SFTP spec. Likewise the error message may provide
hints on what is going wrong.
Both the error code and the error message are retrievable using
libssh2 API after libssh2_sftp_open (or another function call) fails.
> I don't know if it's a libssh2 error or not.
Is the home directory for your user writable by the user? Maybe there
is just a path missing somewhere to specify the upload directory.
//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-05-02