| 159 | } |
| 160 | |
| 161 | Result<std::shared_ptr<io::RandomAccessFile>> PyFileSystem::OpenInputFile( |
| 162 | const std::string& path) { |
| 163 | std::shared_ptr<io::RandomAccessFile> stream; |
| 164 | auto st = SafeCallIntoPython([&]() -> Status { |
| 165 | vtable_.open_input_file(handler_.obj(), path, &stream); |
| 166 | return CheckPyError(); |
| 167 | }); |
| 168 | RETURN_NOT_OK(st); |
| 169 | return stream; |
| 170 | } |
| 171 | |
| 172 | Result<std::shared_ptr<io::OutputStream>> PyFileSystem::OpenOutputStream( |
| 173 | const std::string& path, const std::shared_ptr<const KeyValueMetadata>& metadata) { |
nothing calls this directly
no test coverage detected