Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.7k views
in Java FTP by (300 points)
FTPFile.lastModified is inconsistent with Oracle File.lastModified. FTPFile returns a Date. File returns a long.

Similarly File.list takes a Filter. None of the FTPFile equivalents do.

1 Answer

0 votes
by (162k points)
Why should FTPFile.lastModified method be consistent with Oracle?

We return a Date because for most programmers a date is far more useful than a long.

For filters, try using

FTPClient.dirDetails(String dirname, DirectoryListCallback lister)

You can filter in your callback.

Categories

...