e size" you want //do whatever you want with these files, display them, etc. //expensive FTPFile objects not created until needed. }
Unpaged (whole list) access on a VMS server that uses month names in a language not {@link #getSupportedLanguageCodes() supported} by the system.but uses the "standard" MMM d yyyy
date formatting
FTPClient f=FTPClient(); FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_VMS); conf.setShortMonthNames( "jan|feb|mar|apr|ma\u00ED|j\u00FAn|j\u00FAl|\u00e1g\u00FA|sep|okt|n\u00F3v|des"); f.configure(conf); f.connect(server); f.login(username, password); FTPFile[] files = listFiles(directory);
Unpaged (whole list) access on a Windows-NT server in a different time zone. (Note, since the NT Format uses numeric date formatting, language issues are irrelevant here).
FTPClient f=FTPClient(); FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_NT); conf.setTimeZoneId("America/Denver"); f.configure(conf); f.connect(server); f.login(username, password); FTPFile[] files = listFiles(directory);
Unpaged (whole list) access on a Windows-NT server in a different time zone but which has been configured to use a unix-style listing format.
FTPClient f=FTPClient(); FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_UNIX); conf.setTimeZoneId("America/Denver"); f.configure(conf); f.connect(server); f.login(username, password); FTPFile[] files = listFiles(directory);
@since 1.4
@see org.apache.commons.net.ftp.Configurable
@see org.apache.commons.net.ftp.FTPClient
@see org.apache.commons.net.ftp.parser.FTPTimestampParserImpl#configure(FTPClientConfig)
@see org.apache.commons.net.ftp.parser.ConfigurableFTPFileEntryParserImpl