2 #ifndef __ST_HYPERUTILFILESYSTEM_H
3 #define __ST_HYPERUTILFILESYSTEM_H
8 namespace StHyperUtilFilesystem
12 double get_free_space_percentage(
const char* path,
size_t& bytes_free,
size_t& bytes_total);
15 bool remove_dir_fifo(std::string unlink_path,
const std::string& base_path,
double bytes_free);
16 bool remove_dir_lru(std::string unlink_path,
const std::string& base_path,
double bytes_free);
19 bool path_exists (
const std::string& file);
22 std::string resolve_path(
const std::string& path);
24 void create_dir_recursive(std::string path);
27 unsigned long remove_dir_recursive(std::string unlink_path,
const std::string& base_path);
30 std::ifstream::pos_type filesize(
const char* filename);
34 #endif // __ST_HYPERUTILFILESYSTEM_H