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 Copybara-Service committed May 16, 2018
1 parent bf43c3a commit 35a78c0
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 35a78c0

Please sign in to comment.