Skip to content

Commit

Permalink
Fix dynamic publish path
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <[email protected]>
  • Loading branch information
bentsherman committed Dec 10, 2024
1 parent 9e33149 commit 08a3361
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ output {
'fastq': 'fastq',
'md5': 'fastq/md5'
]
return { file -> "${dirs[file.extension]}/${file.name}" }
return { filename ->
def ext = filename.tokenize('.').last()
"${dirs[ext]}/${filename}"
}
}
index {
path 'samplesheet/samplesheet.json'
Expand Down

0 comments on commit 08a3361

Please sign in to comment.