cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Directory Listing

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 4 Jan 2008 08:11:28 -0800

On Fri, Jan 04, 2008 at 05:45:00AM -0500, Matt Wills wrote:
> Using the command
>
> curl ftp://USER:PASSWORD@DOMAIN/PATH
>
> I receive a directory listing in this format:
>
> -rw-r--r-- 1 domain psacln 72528 Dec 16 09:47 albany.jpg
>
> Note that the date is just the month and day.
>
> If I look at the same directory in an FTP client, I see the COMPLETE date of
> Dec 16 2007.
>
> Is there a reason curl doesn't return the year, and is there a way to force
> it to do so?

Your FTP client is likely parsing the output and adding the year itself. curl
displays exactly what the remote server sends. You could look for some ftp
directory parsing code somewhere and do the same yourself if you'd like, but
it can't be 100% reliable because the ftp directory format isn't standardized.

>>> Dan

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