| 312 | } |
| 313 | |
| 314 | Result<std::string> SubTreeFileSystem::PrependBase(const std::string& s) const { |
| 315 | RETURN_NOT_OK(ValidateSubPath(s)); |
| 316 | if (s.empty()) { |
| 317 | return base_path_; |
| 318 | } else { |
| 319 | return ConcatAbstractPath(base_path_, s); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | Result<std::string> SubTreeFileSystem::PrependBaseNonEmpty(const std::string& s) const { |
| 324 | RETURN_NOT_OK(ValidateSubPath(s)); |
nothing calls this directly
no test coverage detected