| 718 | } |
| 719 | |
| 720 | static Result<std::shared_ptr<fs::FileSystem>> LocalFileSystemFactory( |
| 721 | const arrow::util::Uri& uri, const io::IOContext& io_context, std::string* out_path) { |
| 722 | std::string path; |
| 723 | ARROW_ASSIGN_OR_RAISE(auto options, LocalFileSystemOptions::FromUri(uri, &path)); |
| 724 | if (out_path != nullptr) { |
| 725 | *out_path = std::move(path); |
| 726 | } |
| 727 | return std::make_shared<LocalFileSystem>(options, io_context); |
| 728 | } |
| 729 | |
| 730 | FileSystemRegistrar kLocalFileSystemModule[]{ |
| 731 | ARROW_REGISTER_FILESYSTEM("file", LocalFileSystemFactory, {}), |
nothing calls this directly
no outgoing calls
no test coverage detected