Fetching last modified date of a file in FTP server using FTPClient.getModificationTime yields null
问题 I am trying to fetch last modified date of a file from FTP environment.The result is not as expected. By using ftpClient.getModificationTime("File path") I am getting null . By using FTPFile.getTimestamp().getTime() I am getting wrong last modified (i.e. real last modified is of today and I am getting Wed Feb 18 02:55:22 EST 2004 ). How to get correct last modified?File at FTP Thanks in advance. 回答1: FTPClient.getModificationTime returns null when the server returns an error response to MDTM