Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / step / pkgmgr / step_remove_priv_sharedres.cc
index 828e51b..ed59690 100644 (file)
@@ -7,16 +7,16 @@
 #include <pkgmgr-info.h>
 #include <tzplatform_config.h>
 
-#include <boost/filesystem.hpp>
+#include <filesystem>
 
 #include "common/utils/file_util.h"
 #include "common/utils/user_util.h"
 
-namespace bf = boost::filesystem;
+namespace fs = std::filesystem;
 
 namespace {
 
-bf::path GetRootPathForUid(uid_t uid) {
+fs::path GetRootPathForUid(uid_t uid) {
   tzplatform_set_user(uid);
   const char* rootpath = tzplatform_getenv(TZ_USER_HOME);
   tzplatform_reset_user();
@@ -24,9 +24,9 @@ bf::path GetRootPathForUid(uid_t uid) {
 }
 
 bool RemoveResForUid(const std::string& pkgid, uid_t uid) {
-  bf::path target_path = GetRootPathForUid(uid) / pkgid;
+  fs::path target_path = GetRootPathForUid(uid) / pkgid;
 
-  if (bf::exists(target_path))
+  if (fs::exists(target_path))
     return true;
 
   if (!common_installer::RemoveAll(target_path))