Static test utility functions for file/directory management These are only available on the stub/test platform
| 155 | // Static test utility functions for file/directory management |
| 156 | // These are only available on the stub/test platform |
| 157 | static bool createDirectory(const fl::string& path) FL_NOEXCEPT { |
| 158 | #ifdef FL_IS_WIN |
| 159 | return _mkdir(path.c_str()) == 0 || errno == EEXIST; |
| 160 | #else |
| 161 | return mkdir(path.c_str(), 0755) == 0 || errno == EEXIST; |
| 162 | #endif |
| 163 | } |
| 164 | |
| 165 | static bool removeDirectory(const fl::string& path) FL_NOEXCEPT { |
| 166 | #ifdef FL_IS_WIN |