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

Function ValidateAbstractPath

cpp/src/arrow/filesystem/path_util.cc:138–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138Status ValidateAbstractPath(std::string_view path) {
139 auto pos = path.find_first_of(kSep);
140 while (pos != path.npos) {
141 ++pos;
142 if (path.length() > pos && path[pos] == kSep) {
143 return Status::Invalid("Empty path component");
144 }
145 pos = path.find_first_of(kSep, pos);
146 }
147 return Status::OK();
148}
149
150std::string ConcatAbstractPath(std::string_view base, std::string_view stem) {
151 DCHECK(!stem.empty());

Callers 3

ValidateMethod · 0.85
TESTFunction · 0.85
ValidateMethod · 0.85

Calls 3

InvalidFunction · 0.50
OKFunction · 0.50
lengthMethod · 0.45

Tested by 1

TESTFunction · 0.68