cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] FTP WILDCARDMATCH option (only for now)

From: Pavel Raiskup <xraisk00_at_gmail.com>
Date: Fri, 07 May 2010 18:06:14 +0200

Here is new wildcardmatch attempt!

-- multi and easy interface edited to support wildcard
-- added some new options to API
-- edited manpages
-- six new tests have been added for auto-test suite.
-- some changes on tests/ftpserver.pl and added
    one included .pm to simulate FTP server more real..
    For to use this improvement go to CWD /fully_simulated and
    there are some examples of directories ;-)
-- for quick test use `./runtest.pl wildcardmatch'
-- fnmatch-like function implemented (Curl_fnmatch)

Note that this patch has to be applied this way:
`git am --keep-cr 0001- .. .patch'
and the option `--keep-cr' is available on git 1.7.1+ probably.

There will be shown 3 Warnings,
it is because of "\r\n" on some patch lines.

PATCH posted as .tar to let patch unchanged (trim the \r\n => \n).

I have edited three old tests (146/149/539) because of make
the ./ftpserver.pl file more understandable. Old ftpserver have
been sending static information about current directory..

Added options:
CURLOPT_WILDCARDMATCH
CURLOPT_CHUNK_BGN_FUNCTION
CURLOPT_CHUNK_END_FUNCTION
CURLOPT_CHUNK_DATA
CURLOPT_FNMATCH_FUNCTION

Thank you very much for considering!
Pavel

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

Received on 2010-05-07