common-workflow-language / common-workflow-language/cwltool

Missing Basename when using current directory as an input

Open
#376 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

Hi all!
If use current directory as an input, cwltool fails to set a basename for this folder:
`WorkflowException: Invalid filename: '' contains illegal characters`
If add basename manually to the input in job file, all works

cwltool version 1.0.20170413194156

tool.cwl
```
cwlVersion: v1.0
class: CommandLineTool
hints:
- class: DockerRequirement
dockerPull: ubuntu:latest
inputs:
control_dir:
type: Directory
outputs: []
baseCommand: [echo, 'hello']
```
job_fail.json
```
{
"control_dir": {"class": "Directory", "location": "."}
}
```
job_success.json
```
{
"control_dir": {"class": "Directory", "location": ".", "basename":"any"}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.