cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl, DELE and file globs like mdel

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 30 Sep 2010 23:43:44 +0200 (CEST)

On Thu, 30 Sep 2010, John Utz wrote:

> I am attempting to use the following code delete multiple files like mdel,
> but I get a 550:
>
> "curl trouble:Quote command returned error Ftp=550 Ret=0"
>
> I can delete a single file, but i can not delete a glob. Is there some way
> to do this durectly or do i need to do an additional step to get a file list
> and then loop thru the list deleting each file?

I would guess that you need to iterate "manually" over all the files you want
to remove and that the DELE command wants a single exact file name specified.
You can of course just try a few existing ftp clients to see how they do it.

(The RFC959 is wonderfully lacking of details...)

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-30