curl-library
Re: libcurl FTP - directory listing by file mask
Date: Fri, 28 Mar 2008 13:37:24 +0100 (CET)
On Fri, 28 Mar 2008, mikep_at_proatria.com wrote:
> Maybe if the -l option was used with a filename it would be logical to make
> this similar to an 'ls' command, so file name could be treated as a regex?
> This would be of particular use with the command, but would also make life
> easier for library users. A regex would need additional libraries, but
> simple '*' and '?' matching could be handled internally.
Well, it would also open a whole can of worms that we currently have been
spared from. Like how the FTP commands list different files on different
servers and that the "normal" LIST command lists directories in whatever
format it sees fit.
Also, it would mean that libcurl would get functionality that (tries to)
interpret the actual data transfered from the server. This is something it
currently doesn't do and I quite like this distinct separation in what libcurl
does and doesn't.
I'm far from convinced this is a good idea.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2008-03-28