cURL / Mailing Lists / curl-users / Single Mail

curl-users

recursive ftp delete with curl

From: Cyber Core <cybercorecentre_at_gmail.com>
Date: Sat, 18 Apr 2009 13:40:42 +0200

Hi,

Could anyone give a practical example how to delete all the files from
a directory, using CURLOPT_QUOTE?

With "DELE" command you can delete 1 file at the time, wildcards
cannot be used so I guess at the end you are about to do something
like fetch the remote file list and store it in an array or something
then issue "DELE <filename>" X times.

Thanks,

Jax
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-04-18