Skip to content

Commit 67f4e36

Browse files
committed
edit information on glob
1 parent 80bcaef commit 67f4e36

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/faq.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -446,11 +446,12 @@ The reference runner and several other CWL implementations support running
446446
those Docker format containers using the Singularity engine. Directly
447447
specifying a Singularity format container is not part of the CWL standards.
448448

449-
## 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 `glob` field specifies the file and the output directory in which the file should be stored. The value of the glob field is the `output directory`.
451-
If the value of glob is a relative path pattern (one that does not start with a slash '/'), it is resolved relative to the output directory. If the glob value is an absolute path pattern (it starts with a slash '/'), it must refer to a path within the output directory.
452-
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.
453-
Wildcard characters can be used in the filenames when searching for files. The wildcard characters can either be an asterisk `*`, a question mark matching pathnames in directories. `?` or a range `[]`
449+
## How does glob work when describing output values?
450+
The field outputBinding describes how to to set the value of each output parameter. The 'glob' field specifies a pattern to find files/directories relative to the output directory. The pattern used for glob' must be either relative to the output directory, an absolute path to the output directory, or an absolute path to an input file.
451+
452+
CWL uses the POSIX glob(3) pathname matching. Wildcards are allowed in the glob field and are useful when If you don’t know the exact name of a file or directory in advance. The wildcard characters can either be an asterisk *, a question mark matching pathnames in directories. `?` or a range `[]`.
453+
454+
If an array used in the glob field, any files that match any pattern in the array are returned.
454455

455456
In the example below, the glob field is used to specify the file(`hello.txt`) in which the output should be stored.
456457

@@ -472,7 +473,7 @@ outputs:
472473
glob: '*.txt'
473474
```
474475

475-
Glob can also be used to return all outputs from a CommandLine Tool. For example
476+
Glob can also be used to return all files in the output directory. For example
476477

477478
```
478479
outputs:

0 commit comments

Comments
 (0)