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

Method PrependBaseNonEmpty

cpp/src/arrow/filesystem/filesystem.cc:323–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323Result<std::string> SubTreeFileSystem::PrependBaseNonEmpty(const std::string& s) const {
324 RETURN_NOT_OK(ValidateSubPath(s));
325 if (s.empty()) {
326 return Status::IOError("Empty path");
327 } else {
328 return ConcatAbstractPath(base_path_, s);
329 }
330}
331
332Result<std::string> SubTreeFileSystem::StripBase(const std::string& s) const {
333 auto len = base_path_.length();

Callers

nothing calls this directly

Calls 4

ValidateSubPathFunction · 0.85
IOErrorFunction · 0.85
ConcatAbstractPathFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected