cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Removing directory from ftp server

From: bhuvanagiri <bnagasekhar_at_gmail.com>
Date: Sun, 10 Oct 2010 21:53:53 +0530

On Fri, Oct 8, 2010 at 9:12 PM, Dan Fandrich <dan_at_coneharvesters.com> wrote:

> On Fri, Oct 08, 2010 at 04:44:01PM +0530, bhuvanagiri wrote:
> > I have a requirement to delete a directory (with files and
> sub-directories)
> > from an ftp server. I tried passing "rmdir" and "mdelete" commands
> through
> > quote option. But, neither of them worked.
> > Does curl support deletion of a directory from ftp server?
>
> curl supports sending arbitrary commands to an FTP server through the
> quote mechanism. RFC959 documents the RMD command as the one to delete
> a directory.
>
> >>> Dan
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

Hi,
Thank you.
RMD fails to delete the directory if it is not empty. I want to delete the
directory, its sub-directories and contents inside. How can this be done
through curl?

Thank you,
bhuvnagiri

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