| 170 | } |
| 171 | |
| 172 | Result<std::shared_ptr<io::OutputStream>> PyFileSystem::OpenOutputStream( |
| 173 | const std::string& path, const std::shared_ptr<const KeyValueMetadata>& metadata) { |
| 174 | std::shared_ptr<io::OutputStream> stream; |
| 175 | auto st = SafeCallIntoPython([&]() -> Status { |
| 176 | vtable_.open_output_stream(handler_.obj(), path, metadata, &stream); |
| 177 | return CheckPyError(); |
| 178 | }); |
| 179 | RETURN_NOT_OK(st); |
| 180 | return stream; |
| 181 | } |
| 182 | |
| 183 | Result<std::shared_ptr<io::OutputStream>> PyFileSystem::OpenAppendStream( |
| 184 | const std::string& path, const std::shared_ptr<const KeyValueMetadata>& metadata) { |
nothing calls this directly
no test coverage detected