| 762 | } // namespace |
| 763 | |
| 764 | Result<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 |