|
@@ -15,6 +15,7 @@ import com.github.dockerjava.transport.DockerHttpClient;
|
|
|
import com.miniframe.model.system.SysFile;
|
|
|
import com.miniframe.tools.XIFileUtils;
|
|
|
|
|
|
+import java.io.File;
|
|
|
import java.nio.file.Path;
|
|
|
import java.nio.file.Paths;
|
|
|
import java.util.ArrayList;
|
|
@@ -253,7 +254,15 @@ public class DockerExe {
|
|
|
List<Mount> am =new ArrayList<>();
|
|
|
am.add(wokerMount);
|
|
|
String hdfFile =directory+"/"+file.getFilename().replace(".cgns","_hdf5.cgns");
|
|
|
+ File hdf =new File(hdfFile);
|
|
|
+ if(!hdf.exists()){
|
|
|
+ hdf.createNewFile();
|
|
|
+ }
|
|
|
String jsonFile =directory+"/"+file.getFilename().replace(".cgns","_data.json");
|
|
|
+ File json =new File(jsonFile);
|
|
|
+ if(!json.exists()){
|
|
|
+ json.createNewFile();
|
|
|
+ }
|
|
|
XIFileUtils.saveUploadFiles(hdfFile, "uid","hdf5",file.getId());
|
|
|
XIFileUtils.saveUploadFiles(jsonFile, "uid","json",file.getId());
|
|
|
//创建容器
|