cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SFTP and getting directory

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 9 Apr 2007 22:21:58 +0200 (CEST)

On Sun, 8 Apr 2007, James Housley wrote:

> It looks like I might have some development time over the next couple of
> weeks. I remember a ways back you mentioned something about the "proper"
> way that I should use the non-blocking calls to get the directory. I can't
> find the old email, but I think you said the main part of the work should be
> done in Curl_sftp_recv, is that right?

The proper way is still not possible due to the fact that the libssh2 API is
not yet non-blocking enough for that. We need to implement a
libssh2_sftp_readdirnb() first. Inspiration on how it could act can be taken
from the other *nb() functions (which I've written).

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-04-09