The app I’m working with uses FTPClient class from Apache Commons Net to connect and transfer files to a FTP server. I’m trying to establish if it’s doing that in a passive or active mode by default and I can’t see any references in the app’s code or in the library itself. Any ideas? Answer The active mode is the
Tag: ftp-client
FTPClient.listFiles is not returning time in seconds
I have written the above function to retrieve the file details. But somehow I am retrieving the details without seconds part of the file. I am retrieving the lastModifiedDate as 2013-08-08 00:00:00 where as its actual lastModifiedDate is 2013-08-08 12:53:27 PM Answer The FTPClient.listFiles uses the ancient LIST command. With the command, it’s quite common that the FTP server returns