cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] a new option WILDCARDMATCH (FTP only for now)

From: TJ Saunders <tj_at_castaglia.org>
Date: Thu, 1 Apr 2010 09:36:35 -0700 (PDT)

> FTP directory parsing is a somewhat arcane art to do portably for all
> FTP servers, especially when the FTP server isn't unix.

If libcurl was enhanced to use the MLSD and MLST FTP commands defined in
RFC 3659:

  http://www.faqs.org/rfcs/rfc3659.html

then the parsing of the returned data, including file attributes such as
timestamps and such, would be much easier. Perhaps such MLSD/MLST support
could be the building block for this wildcard matching feature?

Cheers,
TJ

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   Whatever you do will be insignificant, but it is very important
   that you do it.

     -Mahatma Gandhi

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