Is there a way to add file-like objects rather than file paths? Something like:
handle = open('foobar', 'r') z = zipstream.ZipFile(mode='w', compression=ZIP_DEFLATED) z.write(handle)
Is there a way to add file-like objects rather than file paths? Something like:
handle = open('foobar', 'r') z = zipstream.ZipFile(mode='w', compression=ZIP_DEFLATED) z.write(handle)