cherrypick
This commit is contained in:
parent
313d03b75b
commit
bb4927470a
3 changed files with 292 additions and 5 deletions
|
@ -84,7 +84,7 @@ class BaseStorage(StoragePaths):
|
|||
|
||||
def stream_write_to_fp(self, in_fp, out_fp, num_bytes=READ_UNTIL_END):
|
||||
""" Copy the specified number of bytes from the input file stream to the output stream. If
|
||||
num_bytes < 0 copy until the stream ends.
|
||||
num_bytes < 0 copy until the stream ends. Returns the number of bytes copied.
|
||||
"""
|
||||
bytes_copied = 0
|
||||
while bytes_copied < num_bytes or num_bytes == READ_UNTIL_END:
|
||||
|
|
Reference in a new issue