Determining full pathname of output file? #2121
Unanswered
albertoriva
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing a pipeline (using Nextflow 21.04.0) in which I need to store in a "native" variable the pathname to a file generated by a process. Something like this:
The problem is that if I do this,
var
will contain the path to "test.txt" relative to workflow.launchDir, and NOT to the task's execution directory (which is what instead the file() function in the output definition provides).Is there a way to accomplish this? I've seen some references in the documentation to task.workDir, but that always returns "null" for me.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions