注意:ftpClient某些方法是boolean方法

注意:ftpClient.login(), ftpClient.changeWorkingDirectory()都会返回boolean结果

如果用户名密码错误,ftpClient.login()并不会报异常,只是返回false

如果指定目录不存在,ftpClient.changeWorkingDirectory()不会报异常,只是返回false

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.