Re: Error reporting of libssh2_sftp_xxxx functions.

2009-03-23 Thread Peter Stuge
Jean-Louis CHARTON wrote: > I was expecting a more accurate error code like > LIBSSH2_FX_FILE_ALREADY_EXISTS or something like that instead. Request more debug information. Enable tracing in libssh2 for lots of output. //Peter

Re: RE : Error reporting of libssh2_sftp_xxxx functions.

2009-03-23 Thread Daniel Stenberg
On Mon, 23 Mar 2009, Jean-Louis CHARTON wrote: > It seems that many more new error codes have been added in newer revisions > of the RFC. See for example > http://tools.ietf.org/id/draft-ietf-secsh-filexfer-13.txt : Yeps, and that seems to document SFTP protocol version 6 while libssh2 speaks

Error reporting of libssh2_sftp_xxxx functions.

2009-03-23 Thread Jean-Louis CHARTON
Hi all, I'm quite new to libssh2 and maybe the following problem has already been discussed (if so, excuse me). My problem is that if I try to create a directory thanks to libssh2_sftp_mkdir(), and if the directory already exists on the remote SSH server, libssh2_sftp_mkdir() fails; which is wha

RE : Error reporting of libssh2_sftp_xxxx functions.

2009-03-23 Thread Jean-Louis CHARTON
-- De : Alexander Lamaison [mailto:sw...@lammy.co.uk] Envoyé : lundi 23 mars 2009 20:23 À : libssh2 development Objet : Re: Error reporting of libssh2_sftp_ functions. 2009/3/23 Daniel Stenberg : > On Mon, 23 Mar 2009, Jean-Louis CHARTON wrote: > >> I was expecting a more accu

Re: Error reporting of libssh2_sftp_xxxx functions.

2009-03-23 Thread Alexander Lamaison
2009/3/23 Daniel Stenberg : > On Mon, 23 Mar 2009, Jean-Louis CHARTON wrote: > >> I was expecting a more accurate error code like >> LIBSSH2_FX_FILE_ALREADY_EXISTS or something like that instead. > > There is no such code available! See > http://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/dra

Re: Error reporting of libssh2_sftp_xxxx functions.

2009-03-23 Thread Daniel Stenberg
On Mon, 23 Mar 2009, Jean-Louis CHARTON wrote: > My problem is that if I try to create a directory thanks to > libssh2_sftp_mkdir(), and if the directory already exists on the remote SSH > server, libssh2_sftp_mkdir() fails; which is what I'm expecting so far; BUT > the error returned by libssh

Error reporting of libssh2_sftp_xxxx functions.

2009-03-23 Thread Jean-Louis CHARTON
Hi all, I'm quite new to libssh2 and maybe the following problem has already been discussed (if so, excuse me). My problem is that if I try to create a directory thanks to libssh2_sftp_mkdir(), and if the directory already exists on the remote SSH server, libssh2_sftp_mkdir() fails; which is wha