| 113 | } |
| 114 | |
| 115 | TFsPath 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 | |
| 130 | TFsPath& TFsPath::operator/=(const TFsPath& that) { |
| 131 | if (!IsDefined()) { |
no test coverage detected