You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to get a list of 3 kinds of files in a directory
*.png
*.txt
*.html
and store this list into a single output variable. I know the glob() function can be used to find each type, but that means 3 glob() invocations in the output{} section of my WDL, and there is no way to paste them together.
I suppose I could do "ls *.png *.txt *.html >> outputs.lst" in the command{} section, and then in my output{} section do Array outputs = read_lines("outputs.lst").
But it would be cleaner to be able to do something like
I would like to be able to get a list of 3 kinds of files in a directory
*.png
*.txt
*.html
and store this list into a single output variable. I know the glob() function can be used to find each type, but that means 3 glob() invocations in the output{} section of my WDL, and there is no way to paste them together.
I suppose I could do "ls *.png *.txt *.html >> outputs.lst" in the command{} section, and then in my output{} section do Array outputs = read_lines("outputs.lst").
But it would be cleaner to be able to do something like
Array[File] = glob(".png") + glob(".txt") + glob(.html")
or
Array[File] = concat( glob(".png"), glob(".txt"), glob(*.html"))
or variants.
The text was updated successfully, but these errors were encountered: