Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / step / filesystem / step_remove_zip_image.cc
index e6b020d..212a167 100644 (file)
@@ -4,10 +4,8 @@
 
 #include "common/step/filesystem/step_remove_zip_image.h"
 
-#include <boost/filesystem/operations.hpp>
-#include <boost/system/error_code.hpp>
-
 #include <algorithm>
+#include <filesystem>
 #include <string>
 #include <vector>
 
@@ -16,8 +14,7 @@
 #include "common/utils/pkgmgr_query.h"
 #include "common/utils/file_util.h"
 
-namespace bs = boost::system;
-namespace bf = boost::filesystem;
+namespace fs = std::filesystem;
 
 namespace common_installer {
 namespace filesystem {
@@ -29,9 +26,9 @@ Step::Status StepRemoveZipImage::precheck() {
 }
 
 Step::Status StepRemoveZipImage::process() {
-  bf::path zip_image_path =
+  fs::path zip_image_path =
       GetZipPackageLocation(context_->GetPkgPath(), context_->pkgid.get());
-  if (bf::exists(zip_image_path)) {
+  if (fs::exists(zip_image_path)) {
     if (Remove(zip_image_path))
       LOG(INFO) << "Zip image file removed: " << zip_image_path;
   }