Skip to content

Commit 2dd25ab

Browse files
committed
WorkflowStepInput.valueFrom: populate Directory.listing
1 parent 1ed01a1 commit 2dd25ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cwltool/workflow.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from .errors import WorkflowException
2525
from .load_tool import load_tool
2626
from .loghandler import _logger
27+
from .pathmapper import adjustDirObjs, get_listing
2728
from .mutation import MutationManager # pylint: disable=unused-import
2829
from .process import Process, get_overrides, shortname, uniquename
2930
from .software_requirements import ( # pylint: disable=unused-import
@@ -340,6 +341,8 @@ def postScatterEval(io):
340341

341342
def valueFromFunc(k, v): # type: (Any, Any) -> Any
342343
if k in valueFrom:
344+
adjustDirObjs(v, functools.partial(get_listing,
345+
fs_access, recursive=True))
343346
return expression.do_eval(
344347
valueFrom[k], shortio, self.workflow.requirements,
345348
None, None, {}, context=v,

0 commit comments

Comments
 (0)