Browse Source

优化文件下载

dev-DXTZYK
chenzhihang 1 year ago
parent
commit
83c317b854
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java

+ 1
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java View File

@@ -400,7 +400,7 @@ public class NewDatasetServiceImpl implements NewDatasetService {
String localPath = localPathlocal + loginUser.getUsername() + "/datasets/" + id + "/" + identifier; String localPath = localPathlocal + loginUser.getUsername() + "/datasets/" + id + "/" + identifier;


// 打包 data 文件夹 // 打包 data 文件夹
String dataFolderPath = localPath + "/data";
String dataFolderPath = localPath + "/dataset";
String zipFilePath = localPath + "/data.zip"; String zipFilePath = localPath + "/data.zip";
try (FileOutputStream fos = new FileOutputStream(zipFilePath); try (FileOutputStream fos = new FileOutputStream(zipFilePath);
ZipOutputStream zos = new ZipOutputStream(fos)) { ZipOutputStream zos = new ZipOutputStream(fos)) {


Loading…
Cancel
Save