diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-03-21 22:30:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-03-21 22:30:03 +0000 |
commit | 598ffeea891c4cdd644b48477d54ae714cce0291 (patch) | |
tree | e85d5d42244df3e07c89a157635f5ec5140c4349 /src | |
parent | 83367f67de9584b91570bcb53a153b8aa496d455 (diff) |
David McCreedy added CURLINFO_FTP_ENTRY_PATH to export the FTP entry path
Diffstat (limited to 'src')
-rw-r--r-- | src/writeout.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/writeout.c b/src/writeout.c index b28928d2c..9d299f830 100644 --- a/src/writeout.c +++ b/src/writeout.c @@ -60,6 +60,7 @@ typedef enum { VAR_NUM_CONNECTS, VAR_REDIRECT_TIME, VAR_REDIRECT_COUNT, + VAR_FTP_ENTRY_PATH, VAR_NUM_OF_VARS /* must be the last */ } replaceid; @@ -88,6 +89,7 @@ static const struct variable replacements[]={ {"num_connects", VAR_NUM_CONNECTS}, {"time_redirect", VAR_REDIRECT_TIME}, {"num_redirects", VAR_REDIRECT_COUNT}, + {"ftp_entry_path", VAR_FTP_ENTRY_PATH}, {NULL, VAR_NONE} }; @@ -213,6 +215,13 @@ void ourWriteOut(CURL *curl, char *writeinfo) curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &stringp)) && stringp) fputs(stringp, stream); + break; + case VAR_FTP_ENTRY_PATH: + if((CURLE_OK == + curl_easy_getinfo(curl, CURLINFO_FTP_ENTRY_PATH, &stringp)) + && stringp) + fputs(stringp, stream); + break; default: break; } |