Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.9k views
in .NET FTP by
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);

7 Answers

0 votes
by (460 points)
Asked that, this question has solved?
0 votes
by (162k points)
You will need to call ftp.setControlEncoding(Locale.CHINA) for the second problem.

We'll take a look at the parsing problem and get back to you asap.
0 votes
by (162k points)
I tried a parsing test with "drw-rw-rw- 1 user group 0 Jul 13 00:56 Filename" and it works fine.

Are you using the latest version of edtFTPj/PRO, 1.2.8?

I'm not sure where you are getting the 1.2.0 from.
0 votes
by (460 points)
I'm using edtftpnet-1.2.2
0 votes
by (51.6k points)
edtFTPnet is our .NET product. The other messages you've posted (esp. the logs) have all referred to our Java product. Are you sure you don't mean edtFTPj/PRO?

- Hans (EDT)
0 votes
by (460 points)
I'm sure I use edtftpnet-1.2.2 on .net

sorry for post these message here.
0 votes
by (51.6k points)
For anyone reading this thread, please refer to Problem with file name in french "fil

Categories

...