From 598ffeea891c4cdd644b48477d54ae714cce0291 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 21 Mar 2006 22:30:03 +0000 Subject: David McCreedy added CURLINFO_FTP_ENTRY_PATH to export the FTP entry path --- src/writeout.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3