Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

subhasish

Posts

4

Joined

Fri Sep 26, 2008 1:30 am

Modification datetime of FTP server file

by subhasish » Fri Sep 26, 2008 1:47 am

Hi friends,

when I am downloading files from FTP server to local system, the files stored with modification datetime changed to system datetime.
My requirement is to get the last modification datetime(FTP server files).
I noticed there is a function 'lastModified()', which returns only the date. But I need the timestamp as well.

Can anybody help on this??

Thanks in advance
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Modification datetime of FTP server file

by support2 » Fri Sep 26, 2008 9:04 am

lastModified() returns a Date object, which is in fact a timestamp in Java. If the Date objects being returned don't have hours, minutes and seconds, it is because your server isn't returning them.

Who is online

Users browsing this forum: No registered users and 17 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign