Skip to content

Commit 02006df

Browse files
committed
Load "listing" if needed
1 parent 66f4891 commit 02006df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cwltool/provenance.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
from .context import RuntimeContext # pylint: disable=unused-import
4848
from .errors import WorkflowException
4949
from .loghandler import _logger
50+
from .pathmapper import get_listing
5051
from .process import shortname, Process # pylint: disable=unused-import
5152
from .stdfsaccess import StdFsAccess # pylint: disable=unused-import
5253
from .utils import versionstring
@@ -703,6 +704,11 @@ def declare_artefact(self, value):
703704
# FIXME: .listing might not be populated yet - hopefully
704705
# a later call to this method will sort that
705706
is_empty = True
707+
708+
if not "listing" in value:
709+
assert self.research_object.make_fs_access
710+
fsaccess = self.research_object.make_fs_access("")
711+
get_listing(fsaccess, value)
706712
for f in value.get("listing", []):
707713
is_empty = False
708714
# Declare child-artifacts

0 commit comments

Comments
 (0)