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

Function AssertNoTrailingSlash

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

Source from the content-addressed store, hash-verified

202}
203
204Status AssertNoTrailingSlash(std::string_view key) {
205 if (HasTrailingSlash(key)) {
206 return NotAFile(key);
207 }
208 return Status::OK();
209}
210
211Result<std::string> MakeAbstractPathRelative(const std::string& base,
212 const std::string& path) {

Callers 13

ValidateFileLocationFunction · 0.85
OpenInputFileMethod · 0.85
OpenOutputStreamMethod · 0.85
OpenInputStreamMethod · 0.85
OpenInputFileMethod · 0.85
OpenOutputStreamMethod · 0.85
OpenInputReaderMethod · 0.85
OpenAppendStreamMethod · 0.85
OpenInputStreamMethod · 0.85
OpenInputFileMethod · 0.85

Calls 3

HasTrailingSlashFunction · 0.85
NotAFileFunction · 0.70
OKFunction · 0.50

Tested by

no test coverage detected