summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/local/local_action.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2025-04-17 16:56:57 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2025-04-22 13:50:57 +0200
commit8b57548de9836fce3663b99d0140146f12668e8c (patch)
tree59c1f554ac15bb64fa7be2789bd810f42e616c61 /src/buildtool/execution_api/local/local_action.cpp
parentd65d711f844224dcf9215c52be8f69fd2885adfc (diff)
downloadjustbuild-8b57548de9836fce3663b99d0140146f12668e8c.tar.gz
FileSystemManager: Always remove directories recursively
Diffstat (limited to 'src/buildtool/execution_api/local/local_action.cpp')
-rw-r--r--src/buildtool/execution_api/local/local_action.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/local/local_action.cpp b/src/buildtool/execution_api/local/local_action.cpp
index 9884a5ec..7ea0ce34 100644
--- a/src/buildtool/execution_api/local/local_action.cpp
+++ b/src/buildtool/execution_api/local/local_action.cpp
@@ -55,7 +55,7 @@ class BuildCleanupAnchor {
auto operator=(BuildCleanupAnchor const&) -> BuildCleanupAnchor& = delete;
auto operator=(BuildCleanupAnchor&&) -> BuildCleanupAnchor& = delete;
~BuildCleanupAnchor() {
- if (not FileSystemManager::RemoveDirectory(build_path_, true)) {
+ if (not FileSystemManager::RemoveDirectory(build_path_)) {
Logger::Log(LogLevel::Error,
"Could not cleanup build directory {}",
build_path_.string());
@@ -347,7 +347,7 @@ auto LocalAction::StageInputs(
auto LocalAction::CreateDirectoryStructure(
std::filesystem::path const& exec_path) const noexcept -> bool {
// clean execution directory
- if (not FileSystemManager::RemoveDirectory(exec_path, true)) {
+ if (not FileSystemManager::RemoveDirectory(exec_path)) {
logger_.Emit(LogLevel::Error, "failed to clean exec_path");
return false;
}