Skip to content

Commit

Permalink
Fix Create parent directory for DAG report (#5752) [ci fast]
Browse files Browse the repository at this point in the history

Signed-off-by: Ben Sherman <[email protected]>
Co-authored-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
bentsherman and pditommaso authored Feb 6, 2025
1 parent a0ca6e4 commit 62263a3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package nextflow.trace

import java.nio.file.Files
import java.nio.file.Path

import groovy.transform.PackageScope
Expand Down Expand Up @@ -81,6 +82,10 @@ class GraphObserver implements TraceObserver {
void onFlowComplete() {
// -- normalise the DAG
dag.normalize()

// -- make sure parent path exists
file.parent?.mkdirs()

// -- render it to a file
createRender().renderDocument(dag,file)
}
Expand Down

0 comments on commit 62263a3

Please sign in to comment.