bluestone

Learning without thinking leads to confusion;thinking without learning leads to danger.

  博客园 :: 首页 :: 新随笔 :: :: :: 管理 ::
ftpClient.listFiles(pathname).length获取不到指定ftp目录下的个数,得到的永远为0

 

解决方法:

首先设置ftp客户端的属性,

添加一句:ftpClient.enterLocalPassiveMode(),

再执行ftpClient.listFiles(pathname).length

posted on 2014-04-26 10:33  ssatyr  阅读(538)  评论(0)    收藏  举报