Skip to content

Commit

Permalink
remote: recursively delete incomplete downloaded output directory.
Browse files Browse the repository at this point in the history
Fixes #5047

Closes #5209.

PiperOrigin-RevId: 196832678
  • Loading branch information
buchgr authored and lfpino committed May 24, 2018
1 parent 790e6c2 commit e2dfb97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void download(ActionResult result, Path execRoot, FileOutErr outErr)
execRoot.getRelative(file.getPath()).delete();
}
for (OutputDirectory directory : result.getOutputDirectoriesList()) {
execRoot.getRelative(directory.getPath()).delete();
FileSystemUtils.deleteTree(execRoot.getRelative(directory.getPath()));
}
if (outErr != null) {
outErr.getOutputPath().delete();
Expand Down

0 comments on commit e2dfb97

Please sign in to comment.