#include "common/step/filesystem/step_remove_user_data.h"
+#include <filesystem>
#include <string>
#include <utility>
#include <vector>
#include "common/utils/file_util.h"
#include "common/utils/user_util.h"
-namespace bf = boost::filesystem;
+namespace fs = std::filesystem;
namespace ci = common_installer;
namespace {
const char kSharedDir[] = ".shared";
const char kSubssesionDir[] = "subsession";
-bool RemoveContents(const bf::path& path) {
- if (!bf::exists(path))
+bool RemoveContents(const fs::path& path) {
+ if (!fs::exists(path))
return true;
- for (bf::directory_iterator iter(path); iter != bf::directory_iterator();
+ for (fs::directory_iterator iter(path); iter != fs::directory_iterator();
++iter) {
if (!ci::RemoveAll(iter->path()))
return false;
UserList list = ci::GetUserList();
for (const auto& l : list) {
uid_t uid = std::get<0>(l);
- bf::path owner_apps_rw(std::get<2>(l) / "apps_rw");
- std::vector<bf::path> apps_rw_paths;
+ fs::path owner_apps_rw(std::get<2>(l) / "apps_rw");
+ std::vector<fs::path> apps_rw_paths;
apps_rw_paths.push_back(std::move(owner_apps_rw));
for (auto& lw_user : GetLightUserList(uid))
apps_rw_paths.push_back(std::get<2>(l) / kSubssesionDir / lw_user /