MCPcopy Create free account
hub / github.com/apache/arrow / PrependBase

Method PrependBase

cpp/src/arrow/filesystem/filesystem.cc:314–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314Result<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
323Result<std::string> SubTreeFileSystem::PrependBaseNonEmpty(const std::string& s) const {
324 RETURN_NOT_OK(ValidateSubPath(s));

Callers

nothing calls this directly

Calls 3

ValidateSubPathFunction · 0.85
ConcatAbstractPathFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected