|
@@ -43,9 +43,9 @@ public class FileConvertController extends BaseController {
|
|
String srcPath = path + "/" + file.getOriginalFilename();
|
|
String srcPath = path + "/" + file.getOriginalFilename();
|
|
String targetPath = path + "vision.modeldata";
|
|
String targetPath = path + "vision.modeldata";
|
|
File srcFile = new File(srcPath);
|
|
File srcFile = new File(srcPath);
|
|
-// if(!srcFile.getParentFile().exists()){
|
|
|
|
-// srcFile.getParentFile().mkdir();
|
|
|
|
-// }
|
|
|
|
|
|
+ if(!srcFile.getParentFile().exists()){
|
|
|
|
+ srcFile.getParentFile().mkdirs();
|
|
|
|
+ }
|
|
file.transferTo(new File(srcPath));
|
|
file.transferTo(new File(srcPath));
|
|
String type = FileTypeUtil.getType(srcFile);
|
|
String type = FileTypeUtil.getType(srcFile);
|
|
if("txt".equals(type)){
|
|
if("txt".equals(type)){
|