-
Notifications
You must be signed in to change notification settings - Fork 599
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
FilePath globbing does not support curly brackets glob with only one entry, trailing comma #154
Comments
It makes sense. |
… entry, trailing comma #154 [ci skip]
If so, also the following should be recognised at valid glob:
@dctrud What do you think? |
@pditommaso well they are valid with bash/ls. The second one evaluates to nothing...
Not sure whether they are valid for the java.nio globbing? I had a look online and couldn't find any complete definition of the globbing syntax that's valid for it. |
Yes, it is. I've added a couple of tests for that. Thanks. |
I'm using curly bracket globbing to create a channel emitting multiple files where the files are listed in a string parameter separated by commas.
While playing with this I noticed that Nextflow doesn't recognize curly bracket globs with a single entry and trailing comma. These are actually valid glob patterns. e.g.:
... is a valid glob pattern matching only
alice.txt
It's unusual to have one of these, but I believe nextflow should support them as they are valid. This issue has come up in other software e.g. https://issues.jboss.org/browse/TORQUE-128
I believe that in FileHelper class:
...correct regex should allow trailing ',' inside the brackets....
The text was updated successfully, but these errors were encountered: