Util.hpp 387 B

123456789101112131415161718
  1. #ifndef FREESHOP_UTIL_HPP
  2. #define FREESHOP_UTIL_HPP
  3. #include <sys/stat.h>
  4. #include <string>
  5. namespace FreeShop
  6. {
  7. bool pathExists(const char* path, bool escape = true);
  8. void makeDirectory(const char *dir, mode_t mode = 0777);
  9. int removeDirectory(const char *path, bool onlyIfEmpty = false);
  10. std::string getCountryCode(int region);
  11. } // namespace FreeShop
  12. #endif // FREESHOP_UTIL_HPP