From 34cc69dd9dfa180a35af61e7cef616cbb35f5df1 Mon Sep 17 00:00:00 2001 From: Ben Sherman Date: Wed, 3 Jul 2024 03:45:08 -0500 Subject: [PATCH] Fix publish error when remote path contains double slash Signed-off-by: Ben Sherman --- .../src/main/groovy/nextflow/processor/PublishDir.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy b/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy index a0f1448d72..aad10c470b 100644 --- a/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy @@ -144,7 +144,7 @@ class PublishDir { final resolved = value instanceof Closure ? value.call() : value if( resolved instanceof String || resolved instanceof GString ) nullPathWarn = checkNull(resolved.toString()) - this.path = FileHelper.toCanonicalPath(resolved) + this.path = (resolved as Path).complete() } void setMode( String str ) {