cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Getting invisible files in listings

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 29 Mar 2005 11:05:49 +0200 (CEST)

On Tue, 29 Mar 2005, Owen Watson wrote:

> Is there any way of including invisible files (eg .htaccess) in ftp
> directory listings?
>
> I've looked thru the docs and done a mailing list search; I'm a bit
> surprised this topic hasn't come up before.

curl simply asks the FTP server for a file listing. You can provide your own
list command with -X:

  curl -l -X "ls -a" ftp://hosttolist.com/directory/

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-03-29