user1078760
user1078760

Reputation: 749

How to check updated file?

I have following task:

I need to connect to FTP server and download data from it. Then connect to same server and check files for updates.

I can't check it by content, because file is too big. How can I do it? I use apache.commons library, FTPClient class.

Upvotes: 2

Views: 95

Answers (1)

Francis Upton IV
Francis Upton IV

Reputation: 19443

You can call FTPClient.listFiles(String pathName) which gets you an array of FTPFile objects. These contain the timestamp.

Upvotes: 2

Related Questions