cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: list (no root) directory

From: jayjwa <jayjwa_at_atr2.ath.cx>
Date: Sun, 22 Jul 2007 09:43:09 -0400

On Sat, 21 Jul 2007, Dan Fandrich wrote:

-> > ... but how to list directory other than root ?
-> >
-> > C:\>curl.exe ftp://ftp.free.fr/pub
-> > curl: (19) RETR response: 550
->
-> Add a trailing slash: curl ftp://ftp.free.fr/pub/

You probably want the --list-only option (with the previously mentioned
trailing slash) to just list files until you find what you want:

curl -v --list-only ftp://ftp.free.fr/pub/

With some ftp servers, if you actually try to retrieve the directory itself,
you'll get a tarball of the entire directory, which could be gigabytes or even
terrabytes. Probably not what you'd want.

-- 
[RBL:Just A Bad Idea] Do not use DNS-RBL; Demand your ISP stop.
  Tell RoadRunner/Adelphia, Netzero,etc: don't trash your mail.
http://www.ifn.net/classic/rblstory.htm
http://theory.whirlycott.com/~phil/antispam/rbl-bad/rbl-bad.html
Received on 2007-07-22