file()
and Channel.fromPath()
do not recognise absolute paths when providing multiple inputs
#2545
Unanswered
samirelanduk
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
-
Bug report
Expected behavior and actual behavior
In my workflow, a process is called as follows:
Where this second input refers to multiple files. I need to provide these files as individual, absolute paths, rather than individual, relative paths or absolute wildcard paths, but this doesn't work - they do not stage the files in the process directory when given in this form. For example, the following values of
params.smrna_genome
do cause all files to be staged:But the following are not recongised:
If the individual paths begin with a
/
or a.
, they are not parsed correctly, and the files are not staged in the process directory.In other words, using wilcard expansion with an absolute path works, using individually listed files with a relative path works, but using individually listed files with an absolute path (a hard requirement for me in this case) does not work.
I have tried every variation of file separator and path structure I can think of, but none of them work. Using
Channel.fromPath(...).collect()
in place offile(...)
has the same problem.Steps to reproduce the problem
This demonstrates the difference in behaviour when relative and absolute paths are used:
Program output
The above example prints:
Environment
Beta Was this translation helpful? Give feedback.
All reactions