fs::get_data_dir implemented

This commit is contained in:
Nekotekina 2016-07-11 22:00:12 +03:00
parent 2c981cf940
commit ba8fd825ec
3 changed files with 81 additions and 0 deletions

View file

@ -439,6 +439,12 @@ namespace fs
// Get executable directory
const std::string& get_executable_dir();
// Get data/cache directory for specified prefix and suffix
std::string get_data_dir(const std::string& prefix, const std::string& location, const std::string& suffix);
// Get data/cache directory for specified prefix and path (suffix will be filename)
std::string get_data_dir(const std::string& prefix, const std::string& path);
// Delete directory and all its contents recursively
void remove_all(const std::string& path, bool remove_root = true);