Skip to content

Commit a23d0b6

Browse files
fix conflicts after rebase
Signed-off-by: Jorge Aguilera <[email protected]>
1 parent 951b544 commit a23d0b6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/process.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,18 @@ section::
537537
foo('/some/data/file.txt')
538538
}
539539

540+
In the case an input `path` doesn't exist, the process will be aborted. If you want the process will be executed
541+
independently if the file exists or not, you can set the attribute `nullable` as true:
542+
543+
process foo {
544+
input:
545+
path x, stageAs: 'data.txt', nullable:true from '/some/data/file.txt'
546+
547+
"""
548+
[[ -f data.txt ]] your_command --in data.txt || other_command
549+
"""
550+
}
551+
540552

541553
Multiple input files
542554
--------------------
@@ -1004,6 +1016,7 @@ Name Description
10041016
``type`` Type of paths returned, either ``file``, ``dir`` or ``any`` (default: ``any``, or ``file`` if the specified file name pattern contains a double star (``**``))
10051017
``maxDepth`` Maximum number of directory levels to visit (default: no limit)
10061018
``includeInputs`` When ``true`` any input files matching an output file glob pattern are included.
1019+
``nullable`` When ``true`` emit a NullablePath instead to abort the process
10071020
================== =====================
10081021

10091022

0 commit comments

Comments
 (0)