Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: would be nice to have richer set of operators (or std library funcs) for Array type #89

Closed
noblem opened this issue Feb 14, 2017 · 1 comment

Comments

@noblem
Copy link

noblem commented Feb 14, 2017

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.

@patmagee
Copy link
Member

patmagee commented Mar 9, 2018

closing this in favor of #170

@patmagee patmagee closed this as completed Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants