11 2018 档案

摘要:String filePath = "文件夹地址"; File filePathIs = new File(filePath); if(!filePathIs.isDirectory()){ filePathIs.mkdirs(); } //文件夹下的文件列表 List<File> fi 阅读全文
posted @ 2018-11-28 09:22 孤燕南飞 阅读(475) 评论(0) 推荐(0)
摘要:目前在Windows上测试成功,linux上可能是由问题的,在网上找了些资料,结合自己调试结果,最终如下: 递归获取文件: List fileList = new TreeList(); public List files(File file){ for(File f : file.listFile 阅读全文
posted @ 2018-11-23 18:05 孤燕南飞 阅读(895) 评论(0) 推荐(0)