| 27 | } |
| 28 | |
| 29 | bool createDir(const std::string& dir) |
| 30 | { |
| 31 | #ifdef _WIN32 |
| 32 | return bool(CreateDirectory(dir.c_str(), LPSECURITY_ATTRIBUTES(NULL))); |
| 33 | #else |
| 34 | return bool(mkdir(dir.c_str(), S_IRUSR | S_IWUSR | S_IXUSR)); |
| 35 | #endif |
| 36 | } |
| 37 | |
| 38 | std::vector<std::string> split(const std::string &str, const std::string &delimiters) { |
| 39 | std::vector<std::string> tokens; |