cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: retreive all files

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 3 Jan 2002 15:51:55 +0100 (MET)

On Thu, 3 Jan 2002, raoul cridlig wrote:

> How to retreive all the files of a remote directory, easily ?

Using ftp I presume?

First, get a directory listing. Identify all files, then get each file one by
one.

You can possibly get inspiration from this perl script that uses the curl
tool to get a recursive copy of an ftp site:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/curl/curl/perl/contrib/recursiveftpget.pl.in?rev=HEAD&content-type=text/vnd.viewcvs-markup

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-01-03