#ifndef COMMON_EXTERNAL_STORAGE_H_
#define COMMON_EXTERNAL_STORAGE_H_
-#include <boost/filesystem/path.hpp>
-
-
#include <sys/types.h>
+#include <filesystem>
#include <memory>
#include <string>
#include <vector>
class ExternalStorage final {
public:
static std::unique_ptr<ExternalStorage> MoveInstalledStorage(
- RequestType type, const boost::filesystem::path& application_root,
+ RequestType type, const std::filesystem::path& application_root,
const std::string& pkgid, const std::string& package_type,
uid_t uid, bool is_external_move);
static std::unique_ptr<ExternalStorage> AcquireExternalStorage(
- RequestType type, const boost::filesystem::path& application_root,
+ RequestType type, const std::filesystem::path& application_root,
const std::string& pkgid, const std::string& package_type,
- const boost::filesystem::path& space_requirement, uid_t uid);
+ const std::filesystem::path& space_requirement, uid_t uid);
static std::unique_ptr<ExternalStorage> MigrateExternalStorage(
RequestType type, const std::string& pkgid, uid_t uid);
ExternalStorage(RequestType type, const std::string& pkgid,
const std::string& package_type,
- const boost::filesystem::path& application_root, uid_t uid);
+ const std::filesystem::path& application_root, uid_t uid);
ExternalStorage(RequestType type, const std::string& pkgid,
const std::string& package_type,
- const boost::filesystem::path& application_root, uid_t uid,
+ const std::filesystem::path& application_root, uid_t uid,
bool is_external_move);
ExternalStorage(RequestType type, const std::string& pkgid, uid_t uid);
~ExternalStorage();
private:
App2ExtDynamicService service;
- bool Initialize(const boost::filesystem::path& space_requirement);
+ bool Initialize(const std::filesystem::path& space_requirement);
bool Finalize(bool success);
RequestType type_;
std::string pkgid_;
std::string package_type_;
- boost::filesystem::path application_root_;
+ std::filesystem::path application_root_;
uid_t uid_;
int move_type_;
std::shared_ptr<app2ext_handle> handle_;