cwl glob all the output files in a directory
1
0
Entering edit mode
4.8 years ago
lizhichao ▴ 80

iI try to capture all the output files in the directory 【./fpfn】by glob ./fpfn/* . But It failed, the error is :Error validating output record. theoutputfield is not valid \n because item is invalid \n because Expected class 'File' but this is 'Directory' So my grammar wrong? and How can I capture all the files in a directory? Thanks !

cwl • 1.6k views
ADD COMMENT
1
Entering edit mode
4.7 years ago

Hello lizhichao,

Sounds like one of the items in your directory is another directory.

You can work around that by either adjusting your glob to be more specific, or adjusting your type specification.

I'm guessing that currently you have type: File[] or similar right now. If you can't restrict the glob further then try the following:

outputs:
   my_output:
      type:
        type: array
        items: [ File, Directory ]
      outputBinding:
        glob:  ./fpfn/*
ADD COMMENT
1
Entering edit mode

In fact,when I try to be more specific ,It worked. In addition ,I will try the writting format:items: [ File, Directory ] Thank you!

ADD REPLY

Login before adding your answer.

Traffic: 2372 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6