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, regex()-like file search (beyond just glob) #90

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

Comments

@noblem
Copy link

noblem commented Feb 14, 2017

In issue #89 I mentioned a use case of wanting to get a list of 3 kinds of files in a directory

*.png
*.txt
*.html

and store this list into a single output variable. The glob() function is not expressive enough to generate such a list with a single call, but a regular expression-based function would be.

@vdauwera vdauwera added the enhancement An enhancement to the WDL language. label Aug 6, 2017
@jdidion
Copy link
Collaborator

jdidion commented Feb 7, 2024

You should be able to do this: flatten([glob("*.png"), glob("*.txt"), glob("*.html")]).

@jdidion jdidion added question and removed enhancement An enhancement to the WDL language. labels Feb 7, 2024
@jdidion jdidion closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants