vwd.mkdirs(p.target)
else:
source, path = self.arvrunner.fs_access.get_collection(p.resolved)
- vwd.copy(path, p.target, source_collection=source)
+ vwd.copy(path or ".", p.target, source_collection=source)
elif p.type == "CreateFile":
if self.arvrunner.secret_store.has_secret(p.resolved):
secret_mounts["%s/%s" % (self.outdir, p.target)] = {
--- /dev/null
+cwlVersion: v1.0
+class: CommandLineTool
+
+requirements:
+ - class: InitialWorkDirRequirement
+ listing:
+ - entry: $(inputs.filesDir)
+ writable: true
+
+inputs:
+ filesDir:
+ type: Directory
+
+outputs:
+ results:
+ type: Directory
+ outputBinding:
+ glob: .
+
+arguments: [touch, $(inputs.filesDir.path)/blurg.txt]
}
tool: 13931-size.cwl
doc: Test that size is set for files in Keep
+
+- job: 15241-writable-dir-job.json
+ output: {
+ "results": {
+ "basename": "keep:6dd5fa20622d5a7a23c9147d0927da2a+180",
+ "class": "Directory",
+ "listing": [
+ {
+ "basename": "d7514270f356df848477718d58308cc4+94",
+ "class": "Directory",
+ "listing": [
+ {
+ "basename": "a",
+ "checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
+ "class": "File",
+ "location": "a",
+ "size": 0
+ },
+ {
+ "basename": "blurg.txt",
+ "checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
+ "class": "File",
+ "location": "blurg.txt",
+ "size": 0
+ },
+ {
+ "basename": "c",
+ "class": "Directory",
+ "listing": [
+ {
+ "basename": "d",
+ "checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
+ "class": "File",
+ "location": "d",
+ "size": 0
+ }
+ ],
+ "location": "c"
+ },
+ {
+ "basename": "b",
+ "checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
+ "class": "File",
+ "location": "b",
+ "size": 0
+ }
+ ],
+ "location": "d7514270f356df848477718d58308cc4+94"
+ }
+ ],
+ "location": "keep:6dd5fa20622d5a7a23c9147d0927da2a+180"
+ }
+ }
+ tool: 15241-writable-dir.cwl
+ doc: Test for writable collections