cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Automated directory listing of mget for ftp - 7.15.1

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 3 Jan 2007 11:12:47 +0100 (CET)

On Tue, 2 Jan 2007, Nick Harley wrote:

> Is there a way in curl 7.15 (or later; I'd be willing to upgrade) to either
> do a mget command or just return a directory listing?

curl cannot do 'mget' but it displays the contents of an FTP dir if you just
make sure you end the URL with a slash, like in:

   curl ftp://server.com/path/to/dir/

The -l/--list-only option is also popular for this case to ease machine
parsing of the response.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-01-03