Home All Groups Group Topic Archive Search About

Retrieving file info from ftp server

Author
19 Jan 2006 5:16 PM
Dino Buljubasic
Hi,

I have noticed that when I use Socket.Receive(byte[]) it retrieves all
information about files including day, month  but without year.  Date
for directories is full though.

What would be reason for this?  How can I get full date for files
stored on my ftp server from my app.

Thank you

Author
20 Jan 2006 2:18 AM
Homer J Simpson
"Dino Buljubasic" <d***@noplacelikehome.com> wrote in message
news:kfivs1pu8k0ked9j20nsr1iu8v6290ku59@4ax.com...

> I have noticed that when I use Socket.Receive(byte[]) it retrieves all
> information about files including day, month  but without year.  Date
> for directories is full though.
>
> What would be reason for this?  How can I get full date for files
> stored on my ftp server from my app.

By default, most Unix servers give a date without a year for the current
year. Assume current year if no year given.
Author
20 Jan 2006 4:16 PM
Dino Buljubasic
I can not assume current year.  I need the year part for comparisson
purposes.


On Fri, 20 Jan 2006 02:18:32 GMT, "Homer J Simpson"
<nob***@nowhere.com> wrote:

Show quoteHide quote
>
>"Dino Buljubasic" <d***@noplacelikehome.com> wrote in message
>news:kfivs1pu8k0ked9j20nsr1iu8v6290ku59@4ax.com...
>
>> I have noticed that when I use Socket.Receive(byte[]) it retrieves all
>> information about files including day, month  but without year.  Date
>> for directories is full though.
>>
>> What would be reason for this?  How can I get full date for files
>> stored on my ftp server from my app.
>
>By default, most Unix servers give a date without a year for the current
>year. Assume current year if no year given.
>
>
Author
9 Feb 2006 7:51 PM
Homer J Simpson
"Dino Buljubasic" <d***@noplacelikehome.com> wrote in message
news:6e32t1hjkut232dcg8se61a9virns5ld00@4ax.com...

>I can not assume current year.  I need the year part for comparisson
> purposes.

This is a simple text handling function. Extract the date/time information
and parse it. If no year information is given assume current year.
Author
9 Feb 2006 8:03 PM
Homer J Simpson
"Dino Buljubasic" <d***@noplacelikehome.com> wrote in message
news:6e32t1hjkut232dcg8se61a9virns5ld00@4ax.com...

>I can not assume current year.  I need the year part for comparisson
> purposes.

This is a simple text handling function. Extract the date/time information
and parse it. If no year information is given assume current year. Remember
that if you can run a command on the ftp server,

ls -l

will give you full information. Use

man ls

for more information on the ls command.