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

Method GetFileInfoGenerator

cpp/src/arrow/filesystem/localfs.cc:552–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550} // anonymous namespace
551
552FileInfoGenerator 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
565Status LocalFileSystem::CreateDir(const std::string& path, bool recursive) {
566 RETURN_NOT_OK(ValidatePath(path));

Callers

nothing calls this directly

Calls 5

optionsFunction · 0.85
MoveValueUnsafeMethod · 0.80
ValidatePathFunction · 0.70
okMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected