cURL / Mailing Lists / curl-library / Single Mail


Re: delete files from my computer

From: Dan Fandrich <>
Date: Tue, 4 Sep 2007 09:54:02 -0700

On Tue, Sep 04, 2007 at 12:27:55PM -0300, Marco Antonio wrote:
> I'd like to know how I can erase all files of a diferent computer directory
> from mine by ftp using libcurl.

First, you would set up a transfer to obtain a list of all the files in
that directory, using the CURLOPT_FTPLISTONLY option. Next, you would
perform another transfer (a "dummy" transfer) but this time passing in
a list of DELE commands to the CURLOPT_QUOTE option, one for each file
to delete.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-09-04