修复文件批量下载的错误,为压缩文件进行统一管理,批量下载不支持多线程

This commit is contained in:
F嘉阳
2018-02-24 11:29:45 +08:00
parent aa8d5511ab
commit 8cfc6e40bf

View File

@@ -132,7 +132,12 @@ public class DownLoadController {
@RequestParam(value = "Folder")String folder, HttpServletResponse response){ @RequestParam(value = "Folder")String folder, HttpServletResponse response){
//获取文件夹名称 //获取文件夹名称
String paths = serverProperties.getFilePath()+ "upload/"+courseName+"/"+folder; String paths = serverProperties.getFilePath()+ "upload/"+courseName+"/"+folder;
String zipPath = serverProperties.getFilePath(); String zipPath = serverProperties.getFilePath()+"zip/";
File dir = new File(zipPath);
if (!dir.exists()) {
dir.mkdirs();
}
List<String> pathList = new ArrayList<String>(); List<String> pathList = new ArrayList<String>();
pathList=getFileString(paths); pathList=getFileString(paths);