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 /lib/getinfo.c | |
parent | 83367f67de9584b91570bcb53a153b8aa496d455 (diff) |
David McCreedy added CURLINFO_FTP_ENTRY_PATH to export the FTP entry path
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r-- | lib/getinfo.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index 2a4c3aac4..c7b4cfa4a 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -187,6 +187,14 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...) case CURLINFO_COOKIELIST: *param_slistp = Curl_cookie_list(data); break; + case CURLINFO_FTP_ENTRY_PATH: + /* Return the entrypath string from the most recent connection. + This pointer was copied from the connectdata structure by FTP. + The actual string may be free()ed by subsequent libcurl calls so + it must be copied to a safer area before the next libcurl call. + Callers must never free it themselves. */ + *param_charp = data->state.most_recent_ftp_entrypath; + break; case CURLINFO_LASTSOCKET: if((data->state.lastconnect != -1) && (data->state.connects[data->state.lastconnect] != NULL)) |