Problem with gettigs Timestamp for a FTP files
807607Dec 24 2006 — edited Dec 29 2006Hi 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