MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / makeDirectory

Method makeDirectory

source/core/StarFile_windows.cpp:46–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void 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
53bool File::exists(String const& path) {
54 WIN32_FIND_DATAW findFileData;

Callers

nothing calls this directly

Calls 3

stringToUtf16Function · 0.85
strfFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected