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

Function ListDir

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

Source from the content-addressed store, hash-verified

762} // namespace
763
764Result<std::vector<PlatformFilename>> ListDir(const PlatformFilename& dir_path) {
765 ARROW_ASSIGN_OR_RAISE(auto entries, ListDirInternal(dir_path));
766
767 std::vector<PlatformFilename> results;
768 results.reserve(entries.size());
769 for (const auto& entry : entries) {
770 results.emplace_back(std::wstring(entry.cFileName));
771 }
772 return results;
773}
774
775#else
776

Callers 3

StatSelectorFunction · 0.85
InitializeMethod · 0.85
TESTFunction · 0.85

Calls 6

IOErrorFromErrnoFunction · 0.85
ErrnoMessageFunction · 0.85
emplace_backMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
ToStringMethod · 0.45

Tested by 1

TESTFunction · 0.68