Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with gettigs Timestamp for a FTP files

807607Dec 24 2006 — edited Dec 29 2006
Hi All,

I try to get a files from FTP location to my location Pc using enterprisedt.net.ftp.FTPCient. I need to get the fides from FTP location and copy that files in local with original timestamp.

ex.
client.get(localfilenamepath,remotefilename);
Date ftpdate= client .modtime(remoteFilename);

after coping file to my local pc,i need to set the original timestamp of the remote file.

localfile.setLastModified(ftpdate.getTime);
in that case,i cannot get the original time but the date will updated correct.

appreciate if anyone give me a solution.

Thanks

Message was edited by:
mayen
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 26 2007
Added on Dec 24 2006
6 comments
471 views