Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / step / filesystem / step_recover_external_storage.cc
1 // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache-2.0 license that can be
3 // found in the LICENSE file.
4
5 #include "common/step/filesystem/step_recover_external_storage.h"
6
7 #include <filesystem>
8
9 #include "common/utils/file_util.h"
10
11 namespace fs = std::filesystem;
12
13 namespace common_installer {
14 namespace filesystem {
15
16 Step::Status StepRecoverExternalStorage::process() {
17   if (!context_->manifest_data.get()) {
18     RemoveAll(context_->GetPkgPath());
19   } else {
20     (void) StepAcquireExternalStorage::process();
21   }
22   return Status::OK;
23 }
24
25 }  // namespace filesystem
26 }  // namespace common_installer