today I download edtftpj-pro.zip which is a java lib,I found that:
(1) FTPServer OS platform dependen. as
http://www.enterprisedt.com/forums/viewtopic.php?t=563
I use Serv-U 5.0,When list files,it forms
drw-rw-rw- 1 user group 0 Jul 13 00:56 Filename
i got this exception java.text.ParseException: Unparseable date: "drwxr-xr-x 1"
edtftpj-pro-1.2.0 seems just can handle the follow form:
drwxrwxrwx user group 512 Apr 11 14:20 Filename
There is an extra column in the file listing. This will cause an error in java library.
I see .net 1.1.8 version has fix this bug,but java version hasn't
(2) non-latin charset support
(Locale.CHINA)
I am a chinese,When I use FTPClient change to a directory include chinese charset,It report error.
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 26 七月 2005 22:07:04.734 : ---> PWD
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 26 七月 2005 22:07:04.750 : 257 "/" is current directory.
INFO [FTP_FileList] 26 七月 2005 22:07:04.750 : /
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 26 七月 2005 22:07:04.750 : ---> CWD /1_FTP_Root/U_系统更新
com.enterprisedt.net.ftp.FTPException: /1_FTP_Root/U_????: No such file or directory.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.chdir(Unknown Source)
at FTP_FileList.main(FTP_FileList.java:92)
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 26 七月 2005 22:07:04.750 : 550 /1_FTP_Root/U_????: No such file or directory.
I tried to use tow Locals,both failed,and report error above.
FTPFileParser parser = new UnixFileParser();
FTPFileFactory fileFactory = new FTPFileFactory(parser);
ftp.setFTPFileFactory(fileFactory);
// ftp.setParserLocale(Locale.US);
ftp.setParserLocale(Locale.CHINA);