easy:SetOpt_FNMatch_Function(fnmatch_callback[, userdata])
If you pass the optional userdata
argument, the value you pass in userdata
will
be passed to your callback function as a third parameter. The userdata
parameter can
be of any type.
Return #CURL_FNMATCHFUNC_MATCH
if pattern matches the string,
#CURL_FNMATCHFUNC_NOMATCH
if not or #CURL_FNMATCHFUNC_FAIL
if an
error occurred.