File tree Expand file tree Collapse file tree 1 file changed +25
-8
lines changed Expand file tree Collapse file tree 1 file changed +25
-8
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,11 @@ $graph:
39
39
extends : " sld:PrimitiveType"
40
40
symbols :
41
41
- cwl:File
42
+ - cwl:Directory
42
43
doc :
43
44
- " Extends primitive types with the concept of a file as a first class type."
44
45
- " File: A File object"
46
+ - " Directory: A Directory object"
45
47
46
48
- name : File
47
49
type : record
@@ -111,12 +113,23 @@ $graph:
111
113
runtime may perform exact file format matches.
112
114
113
115
116
+ - name : Dirent
117
+ type : record
118
+ fields :
119
+ - name : basename
120
+ type : string
121
+ jsonldPredicate :
122
+ " _id " : cwl:name
123
+ - name : entry
124
+ type : [File, Directory]
125
+
126
+
114
127
- name : Directory
115
128
type : record
116
129
docParent : " #CWLType"
117
130
doc : |
118
131
Represents a directory to present to a command line tool. This could be a virtual
119
- directory, made of files assembled from a number of concrete directories .
132
+ directory, made of files assembled from multiple locations .
120
133
fields :
121
134
- name : class
122
135
type :
@@ -125,18 +138,22 @@ $graph:
125
138
symbols :
126
139
- cwl:Directory
127
140
jsonldPredicate :
128
- " _id " : " @type"
129
- " _type " : " @vocab"
141
+ _id : " @type"
142
+ _type : " @vocab"
130
143
doc : Must be `Directory` to indicate this object describes a Directory.
131
144
- name : path
132
145
type : string
133
146
doc : The path to the directory.
134
147
jsonldPredicate :
135
- " _id " : " cwl:path"
136
- " _type " : " @id"
137
- # - name: size
138
- # type: ["null", long]
139
- # doc: Optional directory size.
148
+ _id : " cwl:path"
149
+ _type : " @id"
150
+ - name : listing
151
+ type : Dirent[]
152
+ doc : List of files or subdirectories contained in this directory
153
+ jsonldPredicate :
154
+ _id : " cwl:listing"
155
+ mapSubject : basename
156
+ mapPredicate : entry
140
157
141
158
142
159
- name : SchemaBase
You can’t perform that action at this time.
0 commit comments