Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.2k views
in Java FTP by (160 points)
I have this code:

         FileTransferClient client = new FileTransferClient();
         client.setRemoteHost("xxx");
         client.setUserName("xxx");
         client.setPassword("xxx");
         client.connect();

         client.exists("abc.txt");  <- Exception here


this is the exception I have :
com.enterprisedt.net.ftp.FTPException: Unable to determine if file 'abcd.txt' exists.
   at com.enterprisedt.net.ftp.FTPClient.exists(FTPClient.java:1841)
   at com.enterprisedt.net.ftp.FileTransferClient.exists(FileTransferClient.java:673)
   at com.bpr_cso.dgp.benchtest.CACNFiles.saveFile(CACNFiles.java:243)
   at com.bpr_cso.dgp.benchtest.CACNFiles.sendFile(CACNFiles.java:197)
   at com.bpr_cso.dgp.benchtest.DGPBenchtest.execute(DGPBenchtest.java:139)
   at com.bpr_cso.dgp.benchtest.DGPBenchtest.main(DGPBenchtest.java:295)


When I trace the code, I can see the "lastReply.getReplyText()" is "abc.txt: Le fichier sp

2 Answers

0 votes
by (162k points)
You've found a bug - thanks. Send an email to support at enterprisedt dot com and we'll get you a fix.
0 votes
by (160 points)
Thanks. Email sent.

Categories

...