We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3e48eb commit bc9cc74Copy full SHA for bc9cc74
cwltool/process.py
@@ -689,8 +689,8 @@ def mergedirs(listing):
689
for e in listing:
690
if e["basename"] not in ents:
691
ents[e["basename"]] = e
692
- elif e["class"] == "Directory":
693
- ents[e["basename"]]["listing"].extend(e["listing"])
+ elif e["class"] == "Directory" and e.get("listing"):
+ ents[e["basename"]].setdefault("listing", []).extend(e["listing"])
694
for e in ents.itervalues():
695
if e["class"] == "Directory" and "listing" in e:
696
e["listing"] = mergedirs(e["listing"])
0 commit comments