瀏覽代碼

bdf 解析

huangxingxing 4 月之前
父節點
當前提交
be981ba3b2
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/java/com/miniframe/tools/docker/DockerExe.java

+ 3 - 3
src/main/java/com/miniframe/tools/docker/DockerExe.java

@@ -253,12 +253,12 @@ public class DockerExe {
                 .withReadOnly(false);
         List<Mount> am =new ArrayList<>();
         am.add(wokerMount);
-        String hdfFile =directory+"/"+file.getFilepath().replace(".cgns","_hdf5.cgns");
+        String hdfFile =directory+"/"+file.getFilename().replace(".cgns","_hdf5.cgns");
         File hdf =new File(hdfFile);
         if(!hdf.exists()){
             hdf.createNewFile();
         }
-        String jsonFile =directory+"/"+file.getFilepath().replace(".cgns","_data.json");
+        String jsonFile =directory+"/"+file.getFilename().replace(".cgns","_data.json");
         File json =new File(jsonFile);
         if(!json.exists()){
             json.createNewFile();
@@ -309,7 +309,7 @@ public class DockerExe {
         List<Mount> am =new ArrayList<>();
         am.add(wokerMount);
 
-        String jsonFile =directory+"/"+file.getFilepath().replace(".bdf","_data.json");
+        String jsonFile =directory+"/"+file.getFilename().replace(".bdf","_data.json");
         File json =new File(jsonFile);
         if(!json.exists()){
             json.createNewFile();