#ifndef COMMON_UTILS_PATHS_H_
#define COMMON_UTILS_PATHS_H_
-#include <boost/filesystem/path.hpp>
-#include <boost/filesystem/operations.hpp>
#include <unistd.h>
+#include <filesystem>
#include <string>
#include "common/utils/request.h"
*
* \return backup path
*/
-boost::filesystem::path GetBackupPathForPackagePath(
- const boost::filesystem::path& pkg_path);
+std::filesystem::path GetBackupPathForPackagePath(
+ const std::filesystem::path& pkg_path);
/**
* \brief Helper function for getting backup path (used for recovery)
*
* \return backup path
*/
-boost::filesystem::path GetBackupPathForManifestFile(
- const boost::filesystem::path& manifest_path);
+std::filesystem::path GetBackupPathForManifestFile(
+ const std::filesystem::path& manifest_path);
/**
* \brief Helper function for getting backup path (used for recovery)
*
* \return backup path
*/
-boost::filesystem::path GetBackupPathForIconFile(
- const boost::filesystem::path& icon_path);
+std::filesystem::path GetBackupPathForIconFile(
+ const std::filesystem::path& icon_path);
/**
* @brief GetIconFileBackupExtension
*
* \return backup path of zip
*/
-boost::filesystem::path GetBackupPathForZipFile(
- const boost::filesystem::path& zip_path);
+std::filesystem::path GetBackupPathForZipFile(
+ const std::filesystem::path& zip_path);
/**
* @brief GetZipPackageLocation
*
* @return full path of zip package location
*/
-boost::filesystem::path GetZipPackageLocation(
- const boost::filesystem::path& pkg_path,
+std::filesystem::path GetZipPackageLocation(
+ const std::filesystem::path& pkg_path,
const std::string& pkgid);
/**
*
* @return full path of package mount point
*/
-boost::filesystem::path GetMountLocation(
- const boost::filesystem::path& pkg_path);
+std::filesystem::path GetMountLocation(
+ const std::filesystem::path& pkg_path);
/**
* @brief GetExternalCardPath
*
* @return path
*/
-boost::filesystem::path GetExternalCardPath();
+std::filesystem::path GetExternalCardPath();
/**
* @brief GetExternalTepPath
*
* @return full directory path
*/
-boost::filesystem::path GetExternalTepPath(RequestMode request_mode, uid_t uid);
+std::filesystem::path GetExternalTepPath(RequestMode request_mode, uid_t uid);
/**
* @brief GetInternalTepPath
*
* @return full directory path
*/
-boost::filesystem::path GetInternalTepPath(
- const boost::filesystem::path& pkg_path);
+std::filesystem::path GetInternalTepPath(
+ const std::filesystem::path& pkg_path);
/**
* @brief GetIconPath
*
* @return full icon path
*/
-boost::filesystem::path GetIconPath(const boost::filesystem::path& base_path,
+std::filesystem::path GetIconPath(const std::filesystem::path& base_path,
const std::string& pkgid,
- const boost::filesystem::path& icon_filename,
- const boost::filesystem::path& root_path);
+ const std::filesystem::path& icon_filename,
+ const std::filesystem::path& root_path);
/**
* @brief IsExtendedStorageAvailable