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

Method SetCurrentWorkingDirectory

util/system/fs.cpp:188–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void NFs::SetCurrentWorkingDirectory(const TString& path) {
189#ifdef _win_
190 bool ok = NFsPrivate::WinSetCurrentWorkingDirectory(path);
191#else
192 bool ok = !chdir(path.data());
193#endif
194 if (!ok) {
195 ythrow TSystemError() << "failed to change directory to " << path.Quote();
196 }
197}

Callers

nothing calls this directly

Calls 3

chdirFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected