| 334 | } |
| 335 | |
| 336 | void TFsPath::RenameTo(const TString& newPath) const { |
| 337 | CheckDefined(); |
| 338 | if (!newPath) { |
| 339 | ythrow TIoException() << "bad new file name"; |
| 340 | } |
| 341 | if (!NFs::Rename(Path_, newPath)) { |
| 342 | ythrow TIoSystemError() << "failed to rename " << Path_ << " to " << newPath; |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | void TFsPath::RenameTo(const char* newPath) const { |
| 347 | RenameTo(TString(newPath)); |
no outgoing calls
no test coverage detected