summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlho Kim <ilho159.kim@samsung.com>2024-10-10 17:42:02 +0900
committerIlho Kim <ilho159.kim@samsung.com>2024-10-10 17:49:20 +0900
commit4108405e631ae8861b09764d69b560d5e87fd1a0 (patch)
tree9d7d7f1e3cfd9a9c8e66dc56494b1e02d0087497
parent94ce7dfb87456ffc44556d484c075b591f5183cd (diff)
downloadapp-installers-4108405e631ae8861b09764d69b560d5e87fd1a0.tar.gz
app-installers-4108405e631ae8861b09764d69b560d5e87fd1a0.tar.bz2
app-installers-4108405e631ae8861b09764d69b560d5e87fd1a0.zip
Revert "Remove already exist path during StepCopy"
This reverts commit a981b689664d2394736f8214e7fd47e3a935f893. Change-Id: Ib344e55fc63fc37c12baafea38289a8386c67dcd Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
-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 "