Retrieving file info from ftp server

  • Thread starter Thread starter Dino Buljubasic
  • Start date Start date
D

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
 
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.
 
I can not assume current year. I need the year part for comparisson
purposes.


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.
 
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.
 
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.
 
Back
Top