cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FW: Downloading all files in a directory

From: Kjell Ericson <Kjell.Ericson_at_haxx.se>
Date: Thu, 16 Sep 2004 10:21:49 +0200 (CEST)

On Thu, 16 Sep 2004, Gavin Webb wrote:

> I figured in this case I could redirect the output from the command which
> gives me a file directory listing and then assuming this file has a fixed
> format (i.e. the filenames are consistently at a given position in the file)
> I could extract them from the file and then issue individual commands to
> download.

What kind of programming language do you use?
It shouldn't be hard to parse the output instead of assuming a fixed place
for the filename.

> Does that seem the right way to do it?

If it solves your problem, then it is. I would do it more or less like that.

  // Kjell
Received on 2004-09-16