Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4k views
in Java FTP by (160 points)
Hi,

I have process which downloading from FTP files and by some reason (I need that) after DL get file timestamp from FTP server and set on local file.

The problem is because this time to time getting 1 year older file timestamp then this is actually. I am not 100% sure yet when that happen, for a moment I believe this is when file timestamp is in future, usualy couple hours, I may guess that this is because of time zone difference between server and uploader or something like that.

Anyway, this is not normal and I can't see any reason for this to modify date for 1 year. Anyone has same problem ?

and ... bad news, when I discovered that : when data retention process is started and have deleted bunch of files supposed NOT to be deleted.

just to be sure, I am first time on this forum, i am talking about
com.enterprisedt.net.ftp.FTPClient dirDetails("mask.txt")

2 Answers

0 votes
by (162k points)
if the date of a file is > 2 days in the future and the year isn't supplied, it is assumed to be in the previous year.

you can also check the date of a file more accurately by using modtime
0 votes
by (160 points)
nah, this was wrong but I just downloaded latest version and this working OK. Sorry because of noise, this is OK now, I just need to test a little to find out if there is any compatibility problem and that is all (this shall run under java 1.4.2)

thank you anyway.

Categories

...