frostming commented on issue #5943:
URL: https://github.com/apache/opendal/issues/5943#issuecomment-2774227226
the `.open()` API returns a file-like object that supports reading by chunks.
```python
dest = opendal.AsyncOperator("fs", ...)
async with (
await src.open("src_path", "rb", ...) as reader,
await dest.open("dest_path", "wb", ...) as writer,
):
async for chunk in reader.read(8192):
# Do whatever
print(f"Received chunk: {len(chunk)} bytes")
```
So I think this is resolved?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]