| 173 | } |
| 174 | |
| 175 | TString NFs::CurrentWorkingDirectory() { |
| 176 | #if defined(_win_) |
| 177 | return NFsPrivate::WinCurrentWorkingDirectory(); |
| 178 | #elif defined(_unix_) |
| 179 | TTempBuf result; |
| 180 | char* r = getcwd(result.Data(), result.Size()); |
| 181 | if (r == nullptr) { |
| 182 | throw TIoSystemError() << "failed to getcwd"; |
| 183 | } |
| 184 | return result.Data(); |
| 185 | #endif |
| 186 | } |
| 187 | |
| 188 | void NFs::SetCurrentWorkingDirectory(const TString& path) { |
| 189 | #ifdef _win_ |
nothing calls this directly
no test coverage detected