Skip to content

Commit

Permalink
Skip existing results_dir check when resuming
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryHung committed Nov 11, 2024
1 parent 1e27ba3 commit da38625
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ if (params.surfacetyper_min_read_depth < 0){
results_dir = file(params.results_dir)

if (results_dir.exists()){
println("This results directory already exists. Specify a new --results_dir or remove your existing one.")
println("Print help with nextflow main.nf --help")
System.exit(1)
if (workflow.resume !== true) {
println("This results directory already exists. Specify a new --results_dir or remove your existing one.")
println("Print help with nextflow main.nf --help")
System.exit(1)
}
} else {
results_dir.mkdir()
}
Expand Down

0 comments on commit da38625

Please sign in to comment.