Util.hpp 329 B

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