(self, path)
| 402 | # TODO can we read/pass metadata (e.g. Content-Type) in the methods below? |
| 403 | |
| 404 | def open_input_stream(self, path): |
| 405 | from pyarrow import PythonFile |
| 406 | |
| 407 | if not self.fs.isfile(path): |
| 408 | raise FileNotFoundError(path) |
| 409 | |
| 410 | return PythonFile(self.fs.open(path, mode="rb"), mode="r") |
| 411 | |
| 412 | def open_input_file(self, path): |
| 413 | from pyarrow import PythonFile |