#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();
}
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))