Commit bde3cbbf authored by Peter van 't Hof's avatar Peter van 't Hof

No copy when file does not exist anymore

parent 4013b925
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
val plot = new File(outputDir, target + "_cov_stats.png") val plot = new File(outputDir, target + "_cov_stats.png")
IoUtils.copyFile(originalPlot, plot) if (originalPlot.exists()) IoUtils.copyFile(originalPlot, plot)
}# }#
<img src="${plot}"> <img src="${plot}">
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
case value => { case value => {
val file = new File(value.toString) val file = new File(value.toString)
val newFile = new File(outputDir, read + "_" + file.getName) val newFile = new File(outputDir, read + "_" + file.getName)
FileUtils.copyFile(file, newFile) if (file.exists()) FileUtils.copyFile(file, newFile)
newFile.getName newFile.getName
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment