• Home
  • Raw
  • Download

Lines Matching refs:wildcard

3782   struct WildcardData *wildcard = data->wildcard;  in init_wc_data()  local
3790 wildcard->state = CURLWC_CLEAN; in init_wc_data()
3794 wildcard->pattern = strdup(last_slash); in init_wc_data()
3795 if(!wildcard->pattern) in init_wc_data()
3801 wildcard->pattern = strdup(path); in init_wc_data()
3802 if(!wildcard->pattern) in init_wc_data()
3807 wildcard->state = CURLWC_CLEAN; in init_wc_data()
3830 wildcard->ftpwc = ftpwc; /* put it to the WildcardData tmp pointer */ in init_wc_data()
3831 wildcard->dtor = wc_data_dtor; in init_wc_data()
3843 wildcard->path = strdup(ftp->path); in init_wc_data()
3844 if(!wildcard->path) { in init_wc_data()
3866 Curl_safefree(wildcard->pattern); in init_wc_data()
3867 wildcard->dtor = ZERO_NULL; in init_wc_data()
3868 wildcard->ftpwc = NULL; in init_wc_data()
3874 struct WildcardData * const wildcard = data->wildcard; in wc_statemach() local
3879 switch(wildcard->state) { in wc_statemach()
3882 if(wildcard->state == CURLWC_CLEAN) in wc_statemach()
3885 wildcard->state = result ? CURLWC_ERROR : CURLWC_MATCHING; in wc_statemach()
3891 struct ftp_wc *ftpwc = wildcard->ftpwc; in wc_statemach()
3896 wildcard->state = CURLWC_DOWNLOADING; in wc_statemach()
3900 wildcard->state = CURLWC_CLEAN; in wc_statemach()
3903 if(wildcard->filelist.size == 0) { in wc_statemach()
3905 wildcard->state = CURLWC_CLEAN; in wc_statemach()
3914 struct curl_fileinfo *finfo = wildcard->filelist.head->ptr; in wc_statemach()
3917 char *tmp_path = aprintf("%s%s", wildcard->path, finfo->filename); in wc_statemach()
3930 finfo, data->set.wildcardptr, (int)wildcard->filelist.size); in wc_statemach()
3936 wildcard->state = CURLWC_SKIP; in wc_statemach()
3944 wildcard->state = CURLWC_SKIP; in wc_statemach()
3956 Curl_llist_remove(&wildcard->filelist, wildcard->filelist.head, NULL); in wc_statemach()
3958 if(wildcard->filelist.size == 0) { /* remains only one file to down. */ in wc_statemach()
3959 wildcard->state = CURLWC_CLEAN; in wc_statemach()
3973 Curl_llist_remove(&wildcard->filelist, wildcard->filelist.head, NULL); in wc_statemach()
3974 wildcard->state = (wildcard->filelist.size == 0) ? in wc_statemach()
3980 struct ftp_wc *ftpwc = wildcard->ftpwc; in wc_statemach()
3985 wildcard->state = result ? CURLWC_ERROR : CURLWC_DONE; in wc_statemach()
3992 if(wildcard->dtor) { in wc_statemach()
3993 wildcard->dtor(wildcard->ftpwc); in wc_statemach()
3994 wildcard->ftpwc = NULL; in wc_statemach()
4022 if(data->wildcard->state == CURLWC_SKIP || in ftp_do()
4023 data->wildcard->state == CURLWC_DONE) { in ftp_do()