Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ path x, name: 'my-dir/file.txt'
In this case, `x.name` returns the file name with the parent directory (e.g. `my-dir/file.txt`), whereas normally it would return the file name (e.g. `file.txt`). You can use `x.fileName.name` to get the file name.
:::

(process-multiple-input-files)=

### Multiple input files

A `path` input can also accept a collection of files instead of a single value. In this case, the input variable will be a list.
Expand Down Expand Up @@ -514,7 +516,7 @@ seq1 seq2 seq3
...
```

The target input file name may contain the `*` and `?` wildcards, which can be used to control the name of staged files. The following table shows how the wildcards are replaced depending on the cardinality of the received input collection.
The target input file name may contain the {index}`*` and {index}`?` wildcards, which can be used to control the name of staged files. The following table shows how the {index}`wildcards` are replaced depending on the cardinality of the received input collection.

| Arity | Name pattern | Staged file names |
| ----------- | ------------ | ------------------------------------------------------------------------------------------------------- |
Expand Down
4 changes: 4 additions & 0 deletions docs/reference/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ Additionally, the [directive values](#directives) for the given task can be acce

: Declare a file input. The received value should be a file or collection of files and will be staged into the task directory.

: :::{tip}
See {ref}`process-multiple-input-files` for more information about accepting collections of files.
:::

: The argument can be an identifier or string. If an identifier, the received value will be made available to the process body as a variable. If a string, the received value will be staged into the task directory under the given alias.

: Available options:
Expand Down
Loading