MCPcopy Create free account
hub / github.com/catboost/catboost / MakePathIfNotExist

Function MakePathIfNotExist

util/folder/dirut.cpp:526–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526void 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
533const char* GetFileNameComponent(const char* f) {
534 const char* p = strrchr(f, LOCSLASH_C);

Callers 2

TTensorBoardLoggerMethod · 0.85
Y_UNIT_TESTFunction · 0.85

Calls 4

MakeDirectoryRecursiveFunction · 0.85
EFilePermissionEnum · 0.85
TFileStatClass · 0.85
IsDirMethod · 0.80

Tested by

no test coverage detected