toil icon indicating copy to clipboard operation
toil copied to clipboard

WDL basename function

Open adthrasher opened this issue 6 years ago • 1 comments

Thanks for the quick response to #2757. Unfortunately, it looks like there are some issues with the solution. In my testing, I've run into two cases where strip() is invalid, because the input object ("path") is of type tuple or type Promise, rather than string.

I've attached WDL workflows which demonstrate both cases.

toil-wdl-runner test2.wdl test_input.json produces the tuple case.

toil-wdl-runner test.wdl test_input.json produces the Promise case.

test_wdl.zip

┆Issue is synchronized with this Jira Story ┆epic: WDL Standard Library Implementation ┆friendlyId: TOIL-405

adthrasher avatar Aug 12 '19 15:08 adthrasher

@adthrasher Thanks for posting this! Will fix and use your examples as unit tests.

DailyDreaming avatar Aug 15 '19 17:08 DailyDreaming