Open maitai opened 4 years ago
The issue above is also reproducible using the docker image commonworkflowlanguage/cwltool:latest
:
docker run --rm -v "$PWD":"$PWD" -w="$PWD" -v /var/run/docker.sock:/var/run/docker.sock -ti commonworkflowlanguage/cwltool:latest --outdir output/ renameFirstFileInDir.cwl --oldDir myDir
INFO /usr/local/bin/cwltool 2.0.20200107113851
INFO Resolved 'renameFirstFileInDir.cwl' to 'file://[REDACTED]/renameFirstFileInDir.cwl'
ERROR Unhandled error, try again with --debug for more information:
[Errno 2] No such file or directory: '[REDACTED]/output/myDir/newname.dat'
I tried almost all of the Docker image tags in that repo but even old versions trigger the error which is why I wonder how I have been able to use this in the first place and if @mr-c's convert-to-v3-layout.cwl is now broken too.
Hey, looking forward to contribute for this project for GSOC, can you let me know how to get started?
Description
As suggested in https://www.biostars.org/p/384082/ files can be renamed inside a CWL
ExpressionTool
by altering theirbasename
property. This seems to work well for a simpleFile
input but appears to not be working (anymore) for the contents of thelisting
of a simpleDirectory
input.Environment
1.0.20190228155703
,1.0.20190831161204
,2.0.20200126090152
and the current version2.0.20200219182542
How to reproduce
Prerequisites
Move to an empty directory of your choice and execute:
The directory layout should now look like this:
Rename plain
File
results in the expected outcome:
Works. Great!
Cleanup:
Rename
File
inside aDirectory
results in the unexpected outcome:
Does not work. File has not been renamed. Therefore execution also throws an error: