File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ def _execute(
409
409
)
410
410
else :
411
411
raise ValueError (
412
- "'lsiting ' in self.generatefiles but no "
412
+ "'listing ' in self.generatefiles but no "
413
413
"generatemapper was setup."
414
414
)
415
415
Original file line number Diff line number Diff line change @@ -399,12 +399,13 @@ def _relocate(src: str, dst: str) -> None:
399
399
def _realpath (
400
400
ob : CWLObjectType ,
401
401
) -> None : # should be type Union[CWLFile, CWLDirectory]
402
- if cast (str , ob ["location" ]).startswith ("file:" ):
403
- ob ["location" ] = file_uri (
404
- os .path .realpath (uri_file_path (cast (str , ob ["location" ])))
405
- )
406
- if cast (str , ob ["location" ]).startswith ("/" ):
407
- ob ["location" ] = os .path .realpath (cast (str , ob ["location" ]))
402
+ location = cast (str , ob ["location" ])
403
+ if location .startswith ("file:" ):
404
+ ob ["location" ] = file_uri (os .path .realpath (uri_file_path (location )))
405
+ elif location .startswith ("/" ):
406
+ ob ["location" ] = os .path .realpath (location )
407
+ elif not location .startswith ("_:" ) and ":" in location :
408
+ ob ["location" ] = file_uri (fs_access .realpath (location ))
408
409
409
410
outfiles = list (_collectDirEntries (outputObj ))
410
411
visit_class (outfiles , ("File" , "Directory" ), _realpath )
You can’t perform that action at this time.
0 commit comments