@@ -60,20 +60,82 @@ $graph:
60
60
symbols :
61
61
- cwl:File
62
62
jsonldPredicate :
63
- " _id " : " @type"
64
- " _type " : " @vocab"
63
+ _id : " @type"
64
+ _type : " @vocab"
65
65
doc : Must be `File` to indicate this object describes a file.
66
+ - name : location
67
+ type : string?
68
+ doc : |
69
+ A URI that identifies the file resource. This may be a relative
70
+ reference, in which case it must be resolved using the base URI of the
71
+ document. The location may refer to a local or remote resource; the
72
+ implementation must use the URI to retrieve file content. If an
73
+ implementation is unable to retrieve the file content stored at a
74
+ remote resource (due to unsupported protocol, access denied, or other
75
+ issue) it must signal an error.
76
+ jsonldPredicate :
77
+ _id : " @id"
78
+ _type : " @id"
66
79
- name : path
67
- type : string
68
- doc : The path to the file.
80
+ type : string?
81
+ doc : |
82
+ The local path where the File is made available prior to executing a
83
+ CommandLineTool. This field must not be used in any other context. The
84
+ command line tool being executed must be able to to access the file at
85
+ `path` using the POSIX `open(2)` syscall.
69
86
jsonldPredicate :
70
87
" _id " : " cwl:path"
71
88
" _type " : " @id"
89
+ - name : basename
90
+ type : string?
91
+ doc : |
92
+ The base name of the file, that is, the path component following the
93
+ final slash in the path.
94
+
95
+ The implementation must set this field based on the value of `path`
96
+ prior to evaluating parameter references or expressions in a
97
+ CommandLineTool document. This field must not be used in any other
98
+ context.
99
+ - name : dirname
100
+ type : string?
101
+ doc : |
102
+ The name of the directory containing file, that is, the path leading up
103
+ to the final slash in the path such that `dirname + '/' + basename =
104
+ path`.
105
+
106
+ The implementation must set this field based on the value of `path`
107
+ prior to evaluating parameter references or expressions in a
108
+ CommandLineTool document. This field must not be used in any other
109
+ context.
110
+ - name : nameroot
111
+ type : string?
112
+ doc : |
113
+ The basename root such that `nameroot + nameext == basename`, and
114
+ `nameext` is empty or begins with a period and contains at most one
115
+ period. Leading periods on the basename are ignored; a basename of
116
+ `.cshrc` will have a nameroot of `.cshrc`.
117
+
118
+ The implementation must set this field based on the value of `path`
119
+ prior to evaluating parameter references or expressions in a
120
+ CommandLineTool document. This field must not be used in any other
121
+ context.
122
+ - name : nameext
123
+ type : string?
124
+ doc : |
125
+ The basename extension such that `nameroot + nameext == basename`, and
126
+ `nameext` is empty or begins with a period and contains at most one
127
+ period. Leading periods on the basename are ignored; a basename of
128
+ `.cshrc` will have an empty `nameext`.
129
+
130
+ The implementation must set this field based on the value of `path`
131
+ prior to evaluating parameter references or expressions in a
132
+ CommandLineTool document. This field must not be used in any other
133
+ context.
72
134
- name : checksum
73
135
type : ["null", string]
74
136
doc : |
75
137
Optional hash code for validating file integrity. Currently must be in the form
76
- "sha1$ + hexidecimal string" using the SHA-1 algorithm.
138
+ "sha1$ + hexadecimal string" using the SHA-1 algorithm.
77
139
- name : size
78
140
type : ["null", long]
79
141
doc : Optional file size.
@@ -141,6 +203,10 @@ $graph:
141
203
_id : " @type"
142
204
_type : " @vocab"
143
205
doc : Must be `Directory` to indicate this object describes a Directory.
206
+ - name : id
207
+ type : string
208
+ doc : A URI used to identify the directory.
209
+ jsonldPredicate : " @id"
144
210
- name : path
145
211
type : string?
146
212
doc : The path to the directory.
0 commit comments