Lines Matching defs:path

862     /* FTPFILE_NOCWD with full path: expect ftpc->cwddone! */
869 /* no need to go to entrypath when we have an absolute path */
874 ftpc->cwdcount = 0; /* we count this as the first path, then we add one
1416 if FTPFILE_NOCWD was specified, we should add the path
1426 if((data->set.ftp_filemethod == FTPFILE_NOCWD) && ftp->path) {
1430 result = Curl_urldecode(ftp->path, 0, &rawPath, NULL, REJECT_CTRL);
1437 the trailing slash for dir/dir/ except for absolute path / */
2903 /* end of path */
2916 /* If the path name does not look like an absolute path (i.e.: it
2921 addition, this server switches automatically to the regular path
2925 if the path name looks strange to minimize overhead on other
2937 infof(data, "Entry path is '%s'", ftpc->entrypath);
2946 infof(data, "Entry path is '%s'", ftpc->entrypath);
2951 /* couldn't get the path */
2953 infof(data, "Failed to figure out path");
3007 /* Name format change successful: reload initial path. */
3050 ftpc->cwdfail = TRUE; /* don't remember this path as we failed
3266 current path, as this connection is going */
3282 /* get the url-decoded "raw" path */
3283 result = Curl_urldecode(ftp->path, 0, &rawPath, &pathLen,
3287 * the error path) */
3291 ftpc->prevpath = NULL; /* no path remembering */
3295 free(rawPath); /* full path => no CWDs happened => keep ftpc->prevpath */
3301 pathLen = 0; /* relative path => working directory is FTP home */
3310 ftpc->prevpath = NULL; /* no path */
3679 /* The specified path ends with a slash, and therefore we think this
3774 char *path = ftp->path;
3779 last_slash = strrchr(ftp->path, '/');
3790 last_slash[0] = '\0'; /* cut file from path */
3793 if(path[0]) {
3794 wildcard->pattern = strdup(path);
3797 path[0] = '\0';
3836 wildcard->path = strdup(ftp->path);
3837 if(!wildcard->path) {
3910 char *tmp_path = aprintf("%s%s", wildcard->path, finfo->filename);
3914 /* switch default ftp->path and tmp_path */
3916 ftp->pathalloc = ftp->path = tmp_path;
3999 * This function is registered as 'curl_do' function. It decodes the path
4120 * Parse the URL path into separate path components.
4133 char *rawPath = NULL; /* url-decoded "raw" path */
4139 /* url-decode ftp path before further evaluation */
4140 result = Curl_urldecode(ftp->path, 0, &rawPath, &pathLen, REJECT_CTRL);
4142 failf(data, "path contains control characters");
4150 fileName = rawPath; /* this is a full file path */
4162 /* get path before last slash, except for / */
4188 /* current position: begin of next path component */
4205 /* parse the URL path into separate path components */
4209 /* path starts with a slash: add that as a directory */
4213 /* we skip empty path components, like "x//y" since the FTP command
4250 else { /* newly created FTP connections are already in entry path */
4260 infof(data, "Request has same path as previous transfer");
4396 ftp->path = &data->state.up.path[1]; /* don't include the initial slash */
4400 type = strstr(ftp->path, ";type=");