Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.8k views
in Java FTP by
I want to get the file list in file modification time order, started with oldest one. How can I do it?
Tried FtpClient.dir(), seems it is not in time order.
Tried FtpClient.modtime(), but the ftp server does not support command "MDTM".

Help, please.
CK.

2 Answers

0 votes
by
If dir() doesn't return in time order, you'll have to re-order yourself once you've fetched the listing.

I want to get the file list in file modification time order, started with oldest one. How can I do it?
Tried FtpClient.dir(), seems it is not in time order.
Tried FtpClient.modtime(), but the ftp server does not support command "MDTM".

Help, please.
CK.
0 votes
by
How?
modtime() not work.dir(dirname,true) only return the time in minutes but not in second.

Categories

...