Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3k views
in Java FTP by
Hello,
The FTP server I'm using replies "213 Unix style list format" to a SYST command. As you see, it doesn't reply the good code, 215. But even if I use setStictReturnCode(false), the API throws an exception.
It sems to be useless to catch it because a SYST command is sent each time I try to LIST unless a previous SYST has been successful.
As a result, I'm unable to LIST on this FTP server.

3 Answers

0 votes
by (162k points)
What exception is thrown when setStictReturnCode(false) is used? Can you post the stack trace?

Also, you can fake a successful SYST by

ftp.setFTPFileFactory(new FTPFileFactory("UNIX"));

or

ftp.setFTPFileFactory(new FTPFileFactory("WINDOWS"));

So if you call the above before using dirDetails(), you should be ok.

Hello,
The FTP server I'm using replies "213 Unix style list format" to a SYST command. As you see, it doesn't reply the good code, 215. But even if I use setStictReturnCode(false), the API throws an exception.
It sems to be useless to catch it because a SYST command is sent each time I try to LIST unless a previous SYST has been successful.
As a result, I'm unable to LIST on this FTP server.
0 votes
by
Thanks for the reply, I hope it shall work. But unfortunatly, it don't have anymore the FTP server. I'll post the stack trace ASAP.
0 votes
by
I won't be able to get back the server. It was an Omneon NETWORKED CONTENT SERVER. If anyone use it, please try to realize this problem and solution proposed.
Thanks

Categories

...