Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.6k views
in Java FTP by (120 points)
Hi all.
Can anybody sole my problem? I am using edtftpj-1.4.2 and trying to store FTP files in a FTPFile array using method dirDetails("~") but it is throwing Exception. The stack trace is as under-

com.enterprisedt.net.ftp.FTPException: Unknown command.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:588)
at com.enterprisedt.net.ftp.FTPClient.system(FTPClient.java:1942)
at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:1595)
at FSMain.downLoadFeeds(FSMain.java:242)
at FSMain.main(FSMain.java:639)

1 Answer

0 votes
by (51.6k points)
I suspect the tilde character (i.e. '~') is your problem. Try using:
DirDetails(".")


- Hans (EDT Support)

Categories

...