| 127 | } |
| 128 | |
| 129 | TString WinCurrentWorkingDirectory() { |
| 130 | TTempBuf result; |
| 131 | LPWSTR buf = reinterpret_cast<LPWSTR>(result.Data()); |
| 132 | int r = GetCurrentDirectoryW(result.Size() / sizeof(WCHAR), buf); |
| 133 | if (r == 0) { |
| 134 | throw TIoSystemError() << "failed to GetCurrentDirectory"; |
| 135 | } |
| 136 | return WCHARToUTF8(buf, r); |
| 137 | } |
| 138 | |
| 139 | bool WinSetCurrentWorkingDirectory(const TString& path) { |
| 140 | TUtf16String wstr; |
no test coverage detected