Change-Id: Ica687fe9393e7adff0bed3107b597df9472a2fab
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
ci::Step::Status StepWgtUpdatePackageDirectory::clean() {
bf::path backup_path =
ci::GetBackupPathForPackagePath(context_->GetPkgPath());
- if (bf::exists(backup_path)) {
- bs::error_code error;
- bf::remove_all(backup_path, error);
- if (error) {
- LOG(ERROR) << "Failed to remove backup directories";
- return Status::APP_DIR_ERROR;
- }
- }
+ if (bf::exists(backup_path))
+ ci::RemoveAll(backup_path);
return Status::OK;
}