Open
Description
Lines 358 to 365 in 378c6e8
ref. #119 (review) suggestion:
- """In-memory streamed copy""" - with self.open(lpath) as stream: - # IterStream objects doesn't support full-length - # seek() calls, so we have to wrap the data with - # an external buffer. - buffer = io.BytesIO(stream.read()) - self.upload_fobj(buffer, rpath) + with self.open(lpath) as stream: + self.upload_fobj(stream, rpath)and fix
self.open
to return a proper stream.