Skip to content
Snippets Groups Projects
Commit b73f1d68 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Add directory listing

parent 662e669a
No related branches found
No related tags found
1 merge request!69Change the name of the pre-calibrated output MS
Pipeline #782 failed
class: CommandLineTool
cwlVersion: v1.0
$namespaces:
sbg: 'https://www.sevenbridges.com/'
id: directory_listing
baseCommand:
- find
inputs:
- id: base_directory
type: Directory
inputBinding:
position: 0
- id: name
type: string
inputBinding:
position: 2
prefix: '-name'
outputs:
- id: output
type: 'Directory[]'
outputBinding:
loadContents: true
glob: out_file
outputEval: |-
${
var paths = self[0].contents.split("\n")
var directories = []
for(var path_idx in paths){
var path = paths[path_idx]
if(path === '') continue
directories.push(
{"class": "Directory",
"path": path
}
)
}
return directories
}
label: DirectoryListing
arguments:
- position: 1
prefix: '-maxdepth'
valueFrom: '1'
- position: 1
prefix: '-type'
valueFrom: d
hints:
- class: DockerRequirement
dockerPull: 'lofareosc/prefactor-ci:master'
requirements:
- class: InlineJavascriptRequirement
stdout: out_file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment