|
|
@@ -1,13 +1,8 @@
|
|
|
package com.uas.report.controller;
|
|
|
|
|
|
-import java.io.IOException;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-
|
|
|
+import com.uas.report.service.FileService;
|
|
|
+import com.uas.report.util.ArrayUtils;
|
|
|
+import com.uas.report.util.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@@ -15,9 +10,12 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
-import com.uas.report.service.FileService;
|
|
|
-import com.uas.report.util.ArrayUtils;
|
|
|
-import com.uas.report.util.StringUtils;
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.io.IOException;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 文件操作请求
|
|
|
@@ -138,4 +136,11 @@ public class FileController {
|
|
|
throws IOException {
|
|
|
return fileService.listFiles(filePath, isAbsolutePath);
|
|
|
}
|
|
|
+
|
|
|
+ @RequestMapping("/newFolder")
|
|
|
+ @ResponseBody
|
|
|
+ public boolean newFolder(String filePath, Boolean isAbsolutePath, String folderName, HttpServletRequest request)
|
|
|
+ throws IOException {
|
|
|
+ return fileService.newFolder(filePath, isAbsolutePath, folderName);
|
|
|
+ }
|
|
|
}
|