File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
main/groovy/nextflow/extension
test/groovy/nextflow/script Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,10 @@ class PublishOp {
121
121
* @param value
122
122
*/
123
123
protected Object normalizePaths (value ) {
124
- if ( value instanceof Path )
125
- return List . of(normalizePath(value))
124
+ if ( value instanceof Path ) {
125
+ final target = normalizePath(value)
126
+ return List . of(targetDir. relativize(target), target)
127
+ }
126
128
127
129
if ( value instanceof Collection ) {
128
130
return value. collect { el ->
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ class OutputDslTest extends Specification {
70
70
target. resolve(' foo/file1.txt' ). text == ' Hello'
71
71
target. resolve(' barbar/file2.txt' ). text == ' world'
72
72
target. resolve(' barbar/index.csv' ). text == """ \
73
- "${ target} /barbar/file2.txt"
73
+ "file2.txt"," ${ target} /barbar/file2.txt"
74
74
""" . stripIndent()
75
75
and :
76
76
1 * session. notifyFilePublish(target. resolve(' foo/file1.txt' ), file1)
You can’t perform that action at this time.
0 commit comments