FTPFile.lastModified() is giving null value, What could be the root cause, since my requirement is the sort the FTPFile files on basis of lastModified value. It is giving null and in compare of Comparator i am not to go ahead. Pleas give the feedback that what could be the root cuase.