| 495 | } |
| 496 | |
| 497 | void TFsPath::ForceRenameTo(const TString& newPath) const { |
| 498 | try { |
| 499 | RenameTo(newPath); |
| 500 | } catch (const TIoSystemError& /* error */) { |
| 501 | CopyTo(newPath, true); |
| 502 | ForceDelete(); |
| 503 | } |
| 504 | } |
| 505 | |
| 506 | TFsPath TFsPath::Cwd() { |
| 507 | return TFsPath(::NFs::CurrentWorkingDirectory()); |
no test coverage detected