| 449 | } |
| 450 | |
| 451 | TString RealLocation(const TString& path) { |
| 452 | if (NFs::Exists(path)) { |
| 453 | return RealPath(path); |
| 454 | } |
| 455 | TString dirpath = GetDirName(path); |
| 456 | if (NFs::Exists(dirpath)) { |
| 457 | return RealPath(dirpath) + GetDirectorySeparatorS() + GetFileNameComponent(path.data()); |
| 458 | } |
| 459 | ythrow TFileError() << "RealLocation failed \"" << path << "\""; |
| 460 | } |
| 461 | |
| 462 | int MakeTempDir(char path[/*FILENAME_MAX*/], const char* prefix) { |
| 463 | int ret; |
no test coverage detected