| 550 | } // anonymous namespace |
| 551 | |
| 552 | FileInfoGenerator LocalFileSystem::GetFileInfoGenerator(const FileSelector& select) { |
| 553 | auto path_status = ValidatePath(select.base_dir); |
| 554 | if (!path_status.ok()) { |
| 555 | return MakeFailingGenerator<FileInfoVector>(path_status); |
| 556 | } |
| 557 | auto fileinfo_gen = |
| 558 | AsyncStatSelector::DiscoverDirectoriesFlattened(select, options(), io_context_); |
| 559 | if (!fileinfo_gen.ok()) { |
| 560 | return MakeFailingGenerator<FileInfoVector>(fileinfo_gen.status()); |
| 561 | } |
| 562 | return fileinfo_gen.MoveValueUnsafe(); |
| 563 | } |
| 564 | |
| 565 | Status LocalFileSystem::CreateDir(const std::string& path, bool recursive) { |
| 566 | RETURN_NOT_OK(ValidatePath(path)); |
nothing calls this directly
no test coverage detected