Skip to content
Snippets Groups Projects
Commit bde3cbbf authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

No copy when file does not exist anymore

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