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

Function JoinPaths

util/folder/pathsplit.cpp:127–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127TString JoinPaths(const TPathSplit& p1, const TPathSplit& p2) {
128 if (p2.IsAbsolute) {
129 ythrow yexception() << "can not join " << p1 << " and " << p2;
130 }
131
132 return TPathSplit(p1).AppendMany(p2.begin(), p2.end()).Reconstruct();
133}
134
135TStringBuf CutExtension(const TStringBuf fileName Y_LIFETIME_BOUND) {
136 if (fileName.empty()) {

Callers

nothing calls this directly

Calls 3

ReconstructMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected