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

Function HasTrailingSlash

cpp/src/arrow/filesystem/path_util.h:101–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99Status AssertNoTrailingSlash(std::string_view s);
100
101inline bool HasTrailingSlash(std::string_view s) {
102 return !s.empty() && s.back() == kSep;
103}
104
105inline bool HasLeadingSlash(std::string_view s) {
106 return !s.empty() && s.front() == kSep;

Callers 11

FileInfoFromBlobFunction · 0.85
GetFileInfoMethod · 0.85
BasenameViewMethod · 0.85
DeleteFileOnContainerMethod · 0.85
MovePathWithDataLakeAPIFunction · 0.85
IsDirectoryFunction · 0.85
CheckExpectedErrnoMethod · 0.85
EnsureTrailingSlashFunction · 0.85
AssertNoTrailingSlashFunction · 0.85

Calls 2

backMethod · 0.80
emptyMethod · 0.45

Tested by 1

CheckExpectedErrnoMethod · 0.68