MCPcopy Create free account
hub / github.com/catboost/catboost / WinSetCurrentWorkingDirectory

Function WinSetCurrentWorkingDirectory

util/system/fs_win.cpp:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 bool WinSetCurrentWorkingDirectory(const TString& path) {
140 TUtf16String wstr;
141 LPCWSTR wname = UTF8ToWCHAR(path, wstr);
142 if (!wname) {
143 ::SetLastError(ERROR_INVALID_NAME);
144 return false;
145 }
146 return SetCurrentDirectoryW(wname);
147 }
148
149 bool WinMakeDirectory(const TString& path) {
150 TUtf16String buf;

Callers 1

Calls 1

UTF8ToWCHARFunction · 0.70

Tested by

no test coverage detected