| 453 | } |
| 454 | |
| 455 | Status WindowsFileSystem::CreateDir(const string& name) { |
| 456 | Status result; |
| 457 | std::wstring ws_name = Utf8ToWideChar(name); |
| 458 | if (ws_name.empty()) { |
| 459 | return errors::AlreadyExists(name); |
| 460 | } |
| 461 | if (_wmkdir(ws_name.c_str()) != 0) { |
| 462 | result = IOError("Failed to create a directory: " + name, errno); |
| 463 | } |
| 464 | return result; |
| 465 | } |
| 466 | |
| 467 | Status WindowsFileSystem::DeleteDir(const string& name) { |
| 468 | Status result; |
nothing calls this directly
no test coverage detected