| 44 | } |
| 45 | |
| 46 | void File::makeDirectory(String const& dirName) { |
| 47 | if (CreateDirectoryW(stringToUtf16(dirName).get(), NULL) == 0) { |
| 48 | auto error = GetLastError(); |
| 49 | throw IOException(strf("could not create directory '{}', {}", dirName, error)); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | bool File::exists(String const& path) { |
| 54 | WIN32_FIND_DATAW findFileData; |
nothing calls this directly
no test coverage detected