From dd30a3d4679e57537a6ac2138bd0b3f554ea46c3 Mon Sep 17 00:00:00 2001 From: Ben Sherman Date: Tue, 2 Jul 2024 03:41:34 -0500 Subject: [PATCH] Fix path handling Signed-off-by: Ben Sherman --- plugins/nf-prov/src/main/nextflow/prov/BcoRenderer.groovy | 2 +- plugins/nf-prov/src/main/nextflow/prov/DagRenderer.groovy | 2 +- plugins/nf-prov/src/main/nextflow/prov/LegacyRenderer.groovy | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/nf-prov/src/main/nextflow/prov/BcoRenderer.groovy b/plugins/nf-prov/src/main/nextflow/prov/BcoRenderer.groovy index 4b67e3c..6350e05 100644 --- a/plugins/nf-prov/src/main/nextflow/prov/BcoRenderer.groovy +++ b/plugins/nf-prov/src/main/nextflow/prov/BcoRenderer.groovy @@ -43,7 +43,7 @@ class BcoRenderer implements Renderer { private PathNormalizer normalizer BcoRenderer(Map opts) { - path = opts.file as Path + path = (opts.file as Path).complete() overwrite = opts.overwrite as Boolean ProvHelper.checkFileOverwrite(path, overwrite) diff --git a/plugins/nf-prov/src/main/nextflow/prov/DagRenderer.groovy b/plugins/nf-prov/src/main/nextflow/prov/DagRenderer.groovy index 453b650..6cd3448 100644 --- a/plugins/nf-prov/src/main/nextflow/prov/DagRenderer.groovy +++ b/plugins/nf-prov/src/main/nextflow/prov/DagRenderer.groovy @@ -41,7 +41,7 @@ class DagRenderer implements Renderer { private PathNormalizer normalizer DagRenderer(Map opts) { - path = opts.file as Path + path = (opts.file as Path).complete() overwrite = opts.overwrite as Boolean ProvHelper.checkFileOverwrite(path, overwrite) diff --git a/plugins/nf-prov/src/main/nextflow/prov/LegacyRenderer.groovy b/plugins/nf-prov/src/main/nextflow/prov/LegacyRenderer.groovy index 6b0f346..12b8972 100644 --- a/plugins/nf-prov/src/main/nextflow/prov/LegacyRenderer.groovy +++ b/plugins/nf-prov/src/main/nextflow/prov/LegacyRenderer.groovy @@ -37,7 +37,7 @@ class LegacyRenderer implements Renderer { private boolean overwrite LegacyRenderer(Map opts) { - path = opts.file as Path + path = (opts.file as Path).complete() overwrite = opts.overwrite as Boolean ProvHelper.checkFileOverwrite(path, overwrite)