remote: recursively delete incomplete downloaded output directory.
Fixes
Closes
@@ -156,7 +156,7 @@ public abstract class AbstractRemoteActionCache implements AutoCloseable {
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();
