Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / external_mount.cc
index 525bbc4..332b514 100644 (file)
@@ -7,13 +7,12 @@
 #include <app2ext_interface.h>
 #include <manifest_parser/utils/logging.h>
 
-#include <boost/filesystem/operations.hpp>
-#include <boost/filesystem/path.hpp>
+#include <filesystem>
 
 #include "common/utils/pkgmgr_query.h"
 #include "common/utils/paths.h"
 
-namespace bf = boost::filesystem;
+namespace fs = std::filesystem;
 
 namespace common_installer {
 
@@ -34,8 +33,8 @@ ExternalMount::~ExternalMount() {
 }
 
 bool ExternalMount::IsAvailable() const {
-  bf::path storage_path = GetExternalCardPath();
-  if (!bf::exists(storage_path)) {
+  fs::path storage_path = GetExternalCardPath();
+  if (!fs::exists(storage_path)) {
     LOG(WARNING) << "External storage (SD Card) is not mounted.";
     return false;
   }