| 524 | } |
| 525 | |
| 526 | void MakePathIfNotExist(const char* path, int mode) { |
| 527 | NFs::MakeDirectoryRecursive(path, NFs::EFilePermission(mode)); |
| 528 | if (!NFs::Exists(path) || !TFileStat(path).IsDir()) { |
| 529 | ythrow TSystemError() << "failed to create directory " << path; |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | const char* GetFileNameComponent(const char* f) { |
| 534 | const char* p = strrchr(f, LOCSLASH_C); |
no test coverage detected