Skip to content

Commit 091cb4c

Browse files
committed
more info on glob
1 parent 2fd2365 commit 091cb4c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/faq.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ outputs:
3838
outputEval: $(self[0].contents)
3939
```
4040
41-
## Rename an input file
41+
## How do I rename an input file?
4242
4343
This example demonstrates how to change the name of an input file
4444
as part of a tool description.
@@ -56,7 +56,7 @@ requirements:
5656
entryName: $(inputs.src1.basename)_custom_extension
5757
```
5858
59-
## Rename an output file
59+
## How do I rename an output file?
6060
6161
This example demonstrates how to change the name of an output file
6262
from the default name given to it by a tool:
@@ -79,7 +79,7 @@ outputs:
7979
outputEval: ${self[0].basename=inputs.otu_table_name; return self;}
8080
```
8181
82-
## Referencing a local script
82+
## How do I reference a local script?
8383
8484
There are two ways to reference a local script:
8585
@@ -134,7 +134,7 @@ outputs: []
134134
In CWL, everything must be directly stated.
135135
```
136136

137-
## Setting `self`-based input bindings for optional inputs
137+
## How can I set `self`-based input bindings for optional inputs?
138138

139139
Currently, `cwltool` can't cope with missing optional inputs if their
140140
input binding makes use of `self`.
@@ -447,7 +447,9 @@ those Docker format containers using the Singularity engine. Directly
447447
specifying a Singularity format container is not part of the CWL standards.
448448

449449
## How outputBinding.glob works
450-
The `outputBinding` section describes how to set the value of each output parameter. The `glob` field is used to return all files/pathnames that match a specific pattern. The value of the glob field is the `output directory` Wildcard characters can be used in the filenames when searching for files. The wildcard characters can either be an asterisk `*`, a question mark `?` or a range `[]`
450+
The `outputBinding` section describes how to set the value of each output parameter. The `glob` field is used to return all files/pathnames that match a specific pattern. The value of the glob field is the `output directory`.
451+
Glob's pattern rules abide to standard Unix path expansion rules. According to benchmarks, it is also expected to be faster than other methods for matching pathnames in directories.
452+
Wildcard characters can be used in the filenames when searching for files. The wildcard characters can either be an asterisk `*`, a question mark `?` or a range `[]`
451453

452454
```cwl
453455
outputs:

0 commit comments

Comments
 (0)