summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/step/filesystem/step_copy.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/common/step/filesystem/step_copy.cc b/src/common/step/filesystem/step_copy.cc
index c3c317ae..9e92a4ed 100644
--- a/src/common/step/filesystem/step_copy.cc
+++ b/src/common/step/filesystem/step_copy.cc
@@ -74,17 +74,6 @@ Step::Status StepCopy::process() {
<< install_path.parent_path().string();
return Step::Status::APP_DIR_ERROR;
}
-
- if (fs::exists(install_path)) {
- LOG(DEBUG) << "Install path [" << install_path
- << "] is already exists, try to remove install path";
- if (!RemoveAll(install_path)) {
- LOG(ERROR) << "Failed to remove the already existing install path["
- << install_path << "]";
- return Step::Status::APP_DIR_ERROR;
- }
- }
-
if (!MoveDir(context_->unpacked_dir_path.get(), install_path,
FSFlag::FS_MERGE_SKIP)) {
LOG(ERROR) << "Cannot move widget directory to install path, from "