Subject: Re: Attempting to wrap sftp in Qt

Re: Attempting to wrap sftp in Qt

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 2 May 2011 09:14:45 +0200 (CEST)

On Sun, 1 May 2011, Mark Roden wrote:

> I'm getting an error with trying to copy a file using sftp with
> libssh2 from a windows 7 machine to a linux machine using libssh2.
> The error number is 2

which error number?

> and from this thread here:

I failed to see how that was relevant to libssh2. Maybe I'm just dense.

> The line that fails is:
>
>
> sftp_handle =
> libssh2_sftp_open_ex(sftp_session,
> theSendRemotePath.data(), theSendRemotePath.size(),
> LIBSSH2_FXF_WRITE|LIBSSH2_FXF_CREAT|LIBSSH2_FXF_TRUNC,
> LIBSSH2_SFTP_S_IFREG,LIBSSH2_SFTP_OPENFILE);

And that returns NULL and you then call libssh2_sftp_last_error() which
returns 2?

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-05-02