ftpClient.listFiles(pathname).length获取不到指定ftp目录下的个数,得到的永远为0
解决方法:
首先设置ftp客户端的属性,
添加一句:ftpClient.enterLocalPassiveMode(),
bluestoneLearning without thinking leads to confusion;thinking without learning leads to danger. |
解决方法:
首先设置ftp客户端的属性,
添加一句:ftpClient.enterLocalPassiveMode(),