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

Function RealLocation

util/folder/dirut.cpp:451–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451TString 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
462int MakeTempDir(char path[/*FILENAME_MAX*/], const char* prefix) {
463 int ret;

Callers 2

Y_UNIT_TESTFunction · 0.85
RealLocationMethod · 0.85

Calls 5

RealPathFunction · 0.85
GetDirNameFunction · 0.85
GetDirectorySeparatorSFunction · 0.85
GetFileNameComponentFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected