Re: Identification of ftp directory tree
Date: Tue, 18 Nov 2008 03:10:17 +1300
Daniel Stenberg wrote:
> On Tue, 18 Nov 2008, Timothy Roughton wrote:
> Please don't reply to an existing mail when you start a new thread. It
> breaks threading.
>> 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,
> Welcome to FTP. A protocol far too old and stupid to make this very
> easy! At least if you want to play by the RFC959 (the original FTP spec)
> In more modern days they shipped RFC 3659[*] that defines the commands
> MLST and MLSD that seems like a good idea to use (together with
> CURLOPT_CUSTOMREQUEST). If your server supports them.
> [*] = http://tools.ietf.org/html/rfc3659#section-7
Thanks, don't suppose LIST -aL will be of any use my local proftpd
server doesn't support those commands, but the remote test server I'm
using does, trouble I don't want to hammer that with prototype ftp code
because I don't own it.
Received on 2008-11-17