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

Method changeDirectory

source/core/StarFile_windows.cpp:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void File::changeDirectory(const String& dirName) {
42 if (!SetCurrentDirectoryW(stringToUtf16(dirName).get()))
43 throw IOException(strf("could not change directory to {}", dirName));
44}
45
46void File::makeDirectory(String const& dirName) {
47 if (CreateDirectoryW(stringToUtf16(dirName).get(), NULL) == 0) {

Callers

nothing calls this directly

Calls 3

stringToUtf16Function · 0.85
strfFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected