cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl FTP - directory listing by file mask

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 28 Mar 2008 08:29:39 -0700

On Fri, Mar 28, 2008 at 08:37:26AM +0000, mikep_at_proatria.com wrote:
> At the moment there is an inconsitency using the -l/--list-only ftp
>option (curl command), as this seems to be ignored for files. 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.

curl doesn't need to do any regex parsing or globbing--it would simply
send the "file name" string as an argument to the NLST command and
let the remote server handle it in whichever way it desires. The
inconsistency is that you can't do that for the LIST command as well due
to the potential ambiguity.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-03-28