You should send an email to the proper mailing-list: http://cool.haxx.se/mailman/listinfo/curl-library
On Apr 6, 8:22 am, George Elias <[email protected]> wrote: > Hi guys, > > I have a little doubt. I need to get a list of the files inside a specific > directory on a SFTP server. I will use CUROPT_DIRLISTONLY in order to get > just the names, but I'm not sure how to get them. This is the peace of code > I have by now: > > string baseUrl(serverAddr + "/" + __destDir); > curl_easy_setopt(anEasyHandle, CURLOPT_URL, (baseUrl).c_str()); > curl_easy_setopt(anEasyHandle, CURLOPT_VERBOSE, 1L); > curl_easy_setopt(anEasyHandle, CURLOPT_DIRLISTONLY, 1); > curl_easy_setopt(anEasyHandle, CURLOPT_QUOTE, commandList); > > curl_easy_perform(anEasyHandle); > > curl_easy_reset(anEasyHandle); > > If I'm right, curl_easy_perform just returns an ERROR_CODE (success or error > ir it applies), correct? So where can I get the files list? > > If I run it on a terminal: curl -u user:pass sftp://server/path/-l I get > the list I want.... > > Any help would be appreciated. > > Thanks in advance, > George -- You received this message because you are subscribed to the Google Groups "curlpp" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/curlpp?hl=en.
