cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP list doesn't show the files starting with dot

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 8 Oct 2003 00:12:31 +0200 (CEST)

On Tue, 7 Oct 2003, Wei Weng wrote:

> I simply connect to the FTP site with curl_easy_setopt(myconnection,
> CURLOPT_URL, "ftp://myhost/temp/"), then read the output. None of the files
> that starts with a dot (such as .foobar) showed up in the output buffer.
>
> Is it a bug?

It isn't a bug in libcurl at least. libcurl asks the server for a list of file
entries (using LIST). The server provides a list. If that list lacks entries,
that is because the server decided it should lack them. You can try to provide
extra options to the list command by using a customrequest (like "LIST -a"),
but that is beyond what RFC959 defines.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-10-08