cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Directory Listing

From: Matt Wills <FMP_at_virtualvermont.com>
Date: Fri, 04 Jan 2008 12:05:43 -0500

on 01/04/08 11:11 AM Dan Fandrich said:
> 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
>>>>

Somehow, the actual date is known.

The FTP client (Transmit) is correctly displaying the full dates of
files going back ten years.

Matt
Received on 2008-01-04