String path = "/SJPT/ONPUT/HMD_TEST/" ; 
        FtpTool.getFTPClient().changeWorkingDirectory(path); 
        String reply = FtpTool.getFTPClient().getReplyString().substring(0, 3); 
        if (reply.equals("250")) { 
          System.out.println("We will now process the path since the server response  code was 250.\n"); 
        } else 
          System.out.println("Ignoring this path, since the server did not return the 250 success code!\n"+ "Most likely because the path does not exist.\n"); 
       

 

相关文章:

  • 2021-05-21
  • 2022-01-04
  • 2021-12-22
  • 2021-10-02
  • 2021-10-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-11-18
  • 2022-02-26
  • 2021-11-19
相关资源
相似解决方案