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

Function PathWithoutTrailingSlash

cpp/src/arrow/util/io_util.cc:702–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702std::wstring PathWithoutTrailingSlash(const PlatformFilename& fn) {
703 std::wstring path = fn.ToNative();
704 while (!path.empty() && path.back() == kNativeSep) {
705 path.pop_back();
706 }
707 return path;
708}
709
710Result<std::vector<WIN32_FIND_DATAW>> ListDirInternal(const PlatformFilename& dir_path) {
711 WIN32_FIND_DATAW find_data;

Callers 2

ListDirInternalFunction · 0.85
FindOneFileFunction · 0.85

Calls 2

backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected