seewindcn commented on issue #6855:
URL: https://github.com/apache/opendal/issues/6855#issuecomment-3606046595
```
def _writes():
for chunk in resp.iter_content(chunk_size=10240): # resp is
requests Response
if chunk:
f.write(chunk)
if _sf:
_sf.write(chunk) # hang
with open(save_file, 'wb') as f: # f is local file object
if _store:
logging.info('[build]save_jenkins_file(%s) to %s@s3', save_file,
C.STORE_OPS)
_sf = _store.op.open(save_file, 'wb') # _sf is opendal's sync
file object
with _sf:
_writes()
else:
_writes()
```
--
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]