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

Method Parent

util/folder/path.cpp:115–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115TFsPath TFsPath::Parent() const {
116 if (!IsDefined()) {
117 return TFsPath();
118 }
119
120 TSplit split = GetSplit();
121 if (split.size()) {
122 split.pop_back();
123 }
124 if (!split.size() && !split.IsAbsolute) {
125 return TFsPath(".");
126 }
127 return TFsPath(split.Reconstruct());
128}
129
130TFsPath& TFsPath::operator/=(const TFsPath& that) {
131 if (!IsDefined()) {

Callers 9

UnpackArchiveFunction · 0.80
OnParentMethod · 0.80
MatchOrUpdateGoldenMethod · 0.80
ContainsMethod · 0.80
CopyToMethod · 0.80
Y_UNIT_TESTFunction · 0.80

Calls 4

TFsPathClass · 0.70
sizeMethod · 0.45
pop_backMethod · 0.45
ReconstructMethod · 0.45

Tested by

no test coverage detected