Skip to content

Commit 79791a4

Browse files
authored
add explanation for /tmp paths
1 parent 6025e51 commit 79791a4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

_episodes/03-input.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ types and appearing on the command line in different ways:
2828

2929
*inp.cwl*
3030

31-
```
31+
~~~
3232
{% include cwl/inp.cwl %}
33-
```
33+
~~~
3434

3535
*inp-job.yml*
3636

@@ -58,6 +58,13 @@ $ cwl-runner inp.cwl inp-job.yml
5858
{}
5959
Final process status is success
6060
```
61+
> ## Where did those `/tmp` paths come from?
62+
>
63+
> The CWL reference runner (cwltool) and other runners create temporary
64+
> directories with symbolic ("soft") links to your input files to ensure that
65+
> the tools aren't accidently accessing files that were not explicitly
66+
> specified
67+
{: .callout}
6168

6269
The field `inputBinding` is optional and indicates whether and how the
6370
input parameter should be appear on the tool's command line. If
@@ -116,7 +123,7 @@ example_file:
116123
File types appear on the command line as the path to the file. When the
117124
parameter type ends with a question mark `?` it indicates that the
118125
parameter is optional. In the example above, this is rendered as
119-
`--file=/home/example/whale.txt`. However, if the "example_file"
126+
`--file=/tmp/random/path/whale.txt`. However, if the "example_file"
120127
parameter were not provided in the input, nothing would appear on the
121128
command line.
122129

0 commit comments

Comments
 (0)