mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
ftp wildcard: a new option CURLOPT_FNMATCH_DATA
This commit is contained in:
parent
027ceb37a1
commit
2ffe834bff
11 changed files with 27 additions and 10 deletions
|
|
@ -330,7 +330,7 @@ static CURLcode ftp_pl_insert_finfo(struct connectdata *conn,
|
|||
compare = Curl_fnmatch;
|
||||
|
||||
/* filter pattern-corresponding filenames */
|
||||
if(compare(wc->pattern, finfo->filename) == 0) {
|
||||
if(compare(conn->data->set.fnmatch_data, wc->pattern, finfo->filename) == 0) {
|
||||
/* discard symlink which is containing multiple " -> " */
|
||||
if((finfo->filetype == CURLFILETYPE_SYMLINK) &&
|
||||
(strstr(finfo->strings.target, " -> "))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue