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

skip canRead when file does not exist

parent 5f7b2cbe
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ trait BiopetQScript extends Configurable with GatkLogging { ...@@ -92,7 +92,7 @@ trait BiopetQScript extends Configurable with GatkLogging {
inputFiles.foreach { i => inputFiles.foreach { i =>
if (!i.file.exists()) Logging.addError(s"Input file does not exist: ${i.file}") if (!i.file.exists()) Logging.addError(s"Input file does not exist: ${i.file}")
if (!i.file.canRead()) Logging.addError(s"Input file can not be read: ${i.file}") else if (!i.file.canRead()) Logging.addError(s"Input file can not be read: ${i.file}")
} }
reportClass.foreach(add(_)) reportClass.foreach(add(_))
......
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