21 #ifndef H_KARAZEH_FILE_MANAGER_H 22 #define H_KARAZEH_FILE_MANAGER_H 24 #include <curl/curl.h> 25 #include <boost/filesystem.hpp> 26 #include "binreloc/binreloc.h" 27 #include "karazeh_export.h" 40 virtual bool load_file(std::ifstream &fs,
string_t& out_buf)
const;
44 virtual bool load_file(
path_t const& path,
string_t& out_buf)
const;
46 virtual bool remove_file(
path_t const&)
const;
47 virtual bool remove_directory(
path_t const&)
const;
49 virtual bool exists(
path_t const&)
const;
51 virtual bool is_empty(
path_t const&)
const;
52 virtual bool is_directory(
path_t const&)
const;
55 virtual bool is_readable(
path_t const &path)
const;
56 virtual bool is_readable(
string_t const &path)
const;
59 virtual bool is_writable(
path_t const &path)
const;
60 virtual bool is_writable(
string_t const &path)
const;
71 virtual bool create_directory(
path_t const& path)
const;
72 virtual bool ensure_directory(
path_t const& path)
const;
81 virtual bool make_executable(
path_t const&)
const;
84 virtual uint64_t stat_filesize(std::ifstream&)
const;
boost::filesystem::path path_t
Definition: karazeh.hpp:57
std::string string_t
Definition: karazeh.hpp:55
Definition: config.hpp:32
unsigned long uint64_t
Definition: karazeh.hpp:56
Definition: logger.hpp:35
Definition: config.hpp:27
kzh::file_manager const * file_manager
Definition: config.hpp:38
Definition: file_manager.hpp:33