We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59db357 commit f960ac6Copy full SHA for f960ac6
cwltool/provenance.py
@@ -545,7 +545,12 @@ def declare_file(self, value):
545
# Check for secondaries
546
for sec in value.get("secondaryFiles", ()):
547
# TODO: Record these in a specializationOf entity with UUID?
548
- (sec_entity, _, _) = self.declare_file(sec)
+ if sec['class'] == "File":
549
+ (sec_entity, _, _) = self.declare_file(sec)
550
+ elif sec['class'] == "Directory":
551
+ sec_entity = self.declare_directory(sec)
552
+ else:
553
+ raise ValueError("Got unexpected secondaryFiles value: {}".format(sec))
554
# We don't know how/when/where the secondary file was generated,
555
# but CWL convention is a kind of summary/index derived
556
# from the original file. As its generally in a different format
0 commit comments