diff --git a/causalpath.iml b/causalpath.iml index bd20c70..5988c40 100644 --- a/causalpath.iml +++ b/causalpath.iml @@ -13,8 +13,8 @@ - - + + diff --git a/pom.xml b/pom.xml index c2a35ee..47ae28f 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.panda causalpath - 1.2.0-SNAPSHOT + 1.2.0 @@ -53,12 +53,12 @@ org.panda utility - 1.2.0-SNAPSHOT + 1.2.0 org.panda resource - 1.2.0-SNAPSHOT + 1.2.0 junit diff --git a/src/main/java/org/panda/causalpath/run/JasonizeResultGraphsRecursively.java b/src/main/java/org/panda/causalpath/run/JasonizeResultGraphsRecursively.java index 4b49600..4430bd3 100644 --- a/src/main/java/org/panda/causalpath/run/JasonizeResultGraphsRecursively.java +++ b/src/main/java/org/panda/causalpath/run/JasonizeResultGraphsRecursively.java @@ -1,6 +1,7 @@ package org.panda.causalpath.run; import org.panda.causalpath.network.GraphWriter; +import org.panda.utility.FileUtil; import java.io.File; import java.io.IOException; @@ -31,7 +32,7 @@ private static void generate(String inBase, String inDir, String sifName, String String sifPath = inDir + File.separator + sifName + ".sif"; String formatPath = inDir + File.separator + sifName + ".format"; - if (Files.exists(Paths.get(sifPath)) && Files.exists(Paths.get(formatPath))) + if (Files.exists(Paths.get(sifPath)) && !FileUtil.isEmpty(sifPath) && Files.exists(Paths.get(formatPath))) { String outDir = inDir.replace(inBase, outBase); Files.createDirectories(Paths.get(outDir));