summaryrefslogtreecommitdiff
path: root/lib/ftp.h
diff options
context:
space:
mode:
authorZenju <zenju@gmx.de>2019-09-19 14:59:13 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-21 16:23:03 +0200
commit36ff5e37b93703fffc4d0a6fc7e355963b524912 (patch)
tree3753f5c1d2bd2625268603a101bb49c96d06dc61 /lib/ftp.h
parent0801343e27d4540afcdbbd8fe46aabaddd9da321 (diff)
downloadcurl-36ff5e37b93703fffc4d0a6fc7e355963b524912.tar.gz
FTP: FTPFILE_NOCWD: avoid redundant CWDs
Closes #4382
Diffstat (limited to 'lib/ftp.h')
-rw-r--r--lib/ftp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ftp.h b/lib/ftp.h
index 828d69a21..3bdf52031 100644
--- a/lib/ftp.h
+++ b/lib/ftp.h
@@ -122,7 +122,7 @@ struct ftp_conn {
char **dirs; /* realloc()ed array for path components */
int dirdepth; /* number of entries used in the 'dirs' array */
int diralloc; /* number of entries allocated for the 'dirs' array */
- char *file; /* decoded file */
+ char *file; /* url-decoded file name (or path) */
bool dont_check; /* Set to TRUE to prevent the final (post-transfer)
file size and 226/250 status check. It should still
read the line, just ignore the result. */
@@ -135,8 +135,7 @@ struct ftp_conn {
bool cwdfail; /* set TRUE if a CWD command fails, as then we must prevent
caching the current directory */
bool wait_data_conn; /* this is set TRUE if data connection is waited */
- char *prevpath; /* conn->path from the previous transfer */
- curl_ftpfile prevmethod; /* ftp method in previous transfer */
+ char *prevpath; /* url-decoded conn->path from the previous transfer */
char transfertype; /* set by ftp_transfertype for use by Curl_client_write()a
and others (A/I or zero) */
int count1; /* general purpose counter for the state machine */