diff --git a/docs/process.md b/docs/process.md index 5b69119e16..3c47b210c1 100644 --- a/docs/process.md +++ b/docs/process.md @@ -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. @@ -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 | | ----------- | ------------ | ------------------------------------------------------------------------------------------------------- | diff --git a/docs/reference/process.md b/docs/reference/process.md index 33953b2518..c0c95779c0 100644 --- a/docs/reference/process.md +++ b/docs/reference/process.md @@ -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: