Skip to content

Commit 0094a14

Browse files
committed
Delete intermediate outputs even when they exist
Previously, cwltool would not delete intermediate output directories if they contained any files, which rather negated the point of deleting them. This behaviour goes back to at least cwltool version 1.0.20170723124118.
1 parent da3f1e7 commit 0094a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def relink(relinked, # type: Dict[Text, Text]
377377

378378
def cleanIntermediate(output_dirs): # type: (Set[Text]) -> None
379379
for a in output_dirs:
380-
if os.path.exists(a) and empty_subtree(a):
380+
if os.path.exists(a):
381381
_logger.debug(u"Removing intermediate output directory %s", a)
382382
shutil.rmtree(a, True)
383383

0 commit comments

Comments
 (0)