cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: NLST with *.txt

From: Mehmet Bozkurt <mehmet.bozkurt_at_xware.se>
Date: Thu, 26 Aug 2010 15:25:25 +0200

>
> Hi!
>
> Is it possible to perform an NLST with a file patter? Such as "NLST
> *.txt", which would return a
> list with only the .txt files in a given directory.
>
> I have tried manually doing it with CURLOPT_QUOTE, but it is a bit
> cumbersome and error prone.
> An alternative would be to filter out the result of a regular NLST with
> some kind of pattern matching
> after fetching the result from the server, but this would mean
> unnecessary traffic on the wire.
>
> Best regards,
> Mehmet.

Answering my own question here, but ftp-wildcard.c is a good place to start
=$

Sorry for spamming!

/Mehmet

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