| 186 | } |
| 187 | |
| 188 | void 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 | } |
nothing calls this directly
no test coverage detected