#include <boost/filesystem.hpp>
#include <boost/filesystem/path.hpp>
#include <string>
+#include <vector>
namespace common_installer {
bool CopyFile(const boost::filesystem::path& src,
const boost::filesystem::path& dst);
+bool RestoreBackup(const boost::filesystem::path& path);
+
+bool MakeBackup(const boost::filesystem::path& path);
+
+bool RemoveBackup(const boost::filesystem::path& path);
+
bool RemoveAll(const boost::filesystem::path& path);
bool Remove(const boost::filesystem::path& path);
bool MoveFile(const boost::filesystem::path& src,
const boost::filesystem::path& dst, bool force = false);
+bool BackupDir(const boost::filesystem::path& src,
+ const boost::filesystem::path& dst, const std::string& entry);
+
bool SetDirPermissions(const boost::filesystem::path& path,
boost::filesystem::perms permissions);
int64_t GetDirectorySize(const boost::filesystem::path& path);
+bool CheckFreeSpaceAtPath(int64_t required_size,
+ const boost::filesystem::path& target_location);
+
boost::filesystem::path GenerateTmpDir(const boost::filesystem::path& app_path);
boost::filesystem::path GenerateTemporaryPath(
bool IsSubDir(const boost::filesystem::path& path,
const boost::filesystem::path& root);
+boost::filesystem::path RelativePath(const boost::filesystem::path& from,
+ const boost::filesystem::path& to);
+
+std::vector<std::string> GetDirectoryList(const boost::filesystem::path& cwd);
+
} // namespace common_installer
#endif // COMMON_UTILS_FILE_UTIL_H_