Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4k views
in Java FTP by
Hello erverybody,

I am writing a program which shoud synchronize two directories over ftp. So it is important for me to know the lastMod time of a the remote files. But using the dirDetails() method I always get absolute wrong information on this, which differ from the real date by several years.

As I connected to my FTP server manually, I got this result when calling the 'dir' action:

drwxr-xr-x 3 dd dd 4096 Nov 29 09:44 public_html
drwxr-xr-x 4 dd dd 4096 Aug 23 2004 quellen

So as you can see the server returns the year for one file and the time for another. - This seems to be very senseless to me.

Has anyone experienced similar problems? Is it even possible to recieve correct information on this from an ftp server in general?

ps. the server I am unsing right now is 'proftpd' under debian linux.

Thanks,
Peter

1 Answer

0 votes
by (162k points)
dirDetails() should still return the correct time, otherwise it is a bug.

Of course make sure you have the latest version.

We'll try it out on your listing below.

Unfortunately this is a Unix trait, which the FTP server is just repeating.

Hello erverybody,

I am writing a program which shoud synchronize two directories over ftp. So it is important for me to know the lastMod time of a the remote files. But using the dirDetails() method I always get absolute wrong information on this, which differ from the real date by several years.

As I connected to my FTP server manually, I got this result when calling the 'dir' action:

drwxr-xr-x 3 dd dd 4096 Nov 29 09:44 public_html
drwxr-xr-x 4 dd dd 4096 Aug 23 2004 quellen

So as you can see the server returns the year for one file and the time for another. - This seems to be very senseless to me.

Has anyone experienced similar problems? Is it even possible to recieve correct information on this from an ftp server in general?

ps. the server I am unsing right now is 'proftpd' under debian linux.

Thanks,
Peter

Categories

...