cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to get directory and file list from current directory on SFTP-server?

From: Dmitry <russiankickingbear_at_gmail.com>
Date: Wed, 4 Apr 2012 18:16:57 +0400

Hi to all!

I try to get that by using this code:

curl_easy_setopt(m_pCURL, CURLOPT_URL, _pTargetDir);
curl_easy_setopt(m_pCURL, CURLOPT_WRITEDATA, &chunk);
curl_easy_setopt(m_pCURL, CURLOPT_WRITEFUNCTION, this->WriteMemoryCallback);

If pTargetDir pointed to file, than i recieve content of the file.
If pTargetDir pointed to the directory, i recieve nothing in buffer and
WriteMemoryCallback never called.
I find ftpparse source code (http://cr.yp.to/ftpparse.html), so, where can
i find solution which getting directory and files list?

Thanks in advance

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-04