curl-library
Identification of ftp directory tree
From: Timothy Roughton <tjroughton_at_clear.net.nz>
Date: Tue, 18 Nov 2008 01:49:29 +1300
Date: Tue, 18 Nov 2008 01:49:29 +1300
I've been looking over the "curl_easy_setopt()" options I'm having
trouble trying to figure out how to identify a file from a folder,
additionally I'll be needing the size of each file too.
curl_easy_setopt(curl, #CURLOPT_URL, @url)
curl_easy_setopt(curl, #CURLOPT_TIMEOUT, timeout.l)
curl_easy_setopt(curl, #CURLOPT_CONNECTTIMEOUT, timeout.l)
curl_easy_setopt(curl, #CURLOPT_FTPLISTONLY, #True)
curl_easy_setopt(curl, #CURLOPT_DEBUGFUNCTION, @Curl_FTP_Debug())
curl_easy_setopt(curl, #CURLOPT_VERBOSE, #True)
curl_easy_setopt(curl, #CURLOPT_WRITEFUNCTION, @LibCurl_WriteFunction())
res = curl_easy_perform(curl)
this chunk is what I am using to get file lists.
Kind regards.
Received on 2008-11-17