|
@@ -92,7 +92,7 @@ public class InnerApiServiceImpl implements IInnerApiService {
|
|
|
if(file.getOriginalFilename().toLowerCase().endsWith(".rar")){
|
|
|
// CreateObjUtil.unRar(dataSource + file.getOriginalFilename(), dataSource);
|
|
|
log.info("解压rar开始");
|
|
|
- String command = "unrar e " + dataSource + file.getOriginalFilename() + " " + dataSource;
|
|
|
+ String command = "unrar x " + dataSource + file.getOriginalFilename() + " " + dataSource;
|
|
|
RuntimeUtil.exec(command);
|
|
|
log.info("解压rar完毕:" + command);
|
|
|
}
|
|
@@ -111,6 +111,7 @@ public class InnerApiServiceImpl implements IInnerApiService {
|
|
|
if(ossPath.endsWith("/")){
|
|
|
ossPath = ossPath.substring(0, ossPath.lastIndexOf("/"));
|
|
|
}
|
|
|
+ log.info("local:{}, ossPath:{}", filePath, ossPath);
|
|
|
fYunFileService.uploadFile(filePath, ossPath);
|
|
|
}
|
|
|
|
|
@@ -200,7 +201,9 @@ public class InnerApiServiceImpl implements IInnerApiService {
|
|
|
// FileUtils.readfilePath("F:\\test\\wwwroot\\1115", fileList);
|
|
|
//// List<String> strings = FileUtil.listFileNames("F:\\test\\wwwroot\\1115");
|
|
|
// fileList.stream().forEach(s-> System.out.println(s));
|
|
|
- System.out.println(FileUtil.getPrefix("1115.rar"));
|
|
|
+// System.out.println(FileUtil.getPrefix("1115.rar"));
|
|
|
+ FileUtil.move(new File("F:\\test\\wwwroot\\1115"), new File("F:\\test\\wwwroot"), true);
|
|
|
+
|
|
|
|
|
|
}
|
|
|
}
|