文件解压缩外层嵌套源文件md5目录
This commit is contained in:
parent
5f52c00e58
commit
a22d090fd5
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>com.qiwenshare</groupId>
|
||||
<artifactId>qiwenshare</artifactId>
|
||||
<version>1.0.2</version>
|
||||
<version>1.0.3</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.qiwenshare</groupId>
|
||||
|
@ -292,7 +292,8 @@ public class FileController {
|
||||
}
|
||||
String zipFileUrl = PathUtil.getStaticPath() + unzipFileDto.getFileUrl();
|
||||
File file = FileOperation.newFile(zipFileUrl);
|
||||
String unzipUrl = file.getParent();
|
||||
String extendName = FileUtil.getFileExtendName(zipFileUrl);
|
||||
String unzipUrl = zipFileUrl.replace("." + extendName, "");
|
||||
String[] arr = unzipFileDto.getFileUrl().split("\\.");
|
||||
if (arr.length <= 1) {
|
||||
return RestResult.fail().message("文件名格式错误!");
|
||||
@ -316,8 +317,6 @@ public class FileController {
|
||||
|
||||
List<FileBean> fileBeanList = new ArrayList<>();
|
||||
|
||||
log.info("解压缩文件数量:" + fileBeanList);
|
||||
|
||||
for (int i = 0; i < fileEntryNameList.size(); i++){
|
||||
String entryName = fileEntryNameList.get(i);
|
||||
log.info("文件名:"+ entryName);
|
||||
|
Loading…
Reference in New Issue
Block a user