cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to see hidden files on ftp server

From: Anders Havn <anders.havn_at_gmail.com>
Date: Wed, 10 Apr 2013 16:22:49 +0200

Hi,

When listing files on my ftp server I can't see the hidden files. I found
this on http://curl.haxx.se/docs/faq.html :
"Also, both LIST and NLST tend to hide unix-style hidden files (those that
start with a dot) by default so you need to do "LIST -a" or similar to see
them."

When listing files now I just use:

curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, callBack);

curl_easy_setopt(curl, CURLOPT_URL, filePath);

How do I use the "LIST -a" with curl_easy_setopt?

Best Regards,

Anders Havn

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