You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example in README seems to imply that simply doing z.write('/path/to/files/') is sufficient but that generates empty archives. Something like:
z = zipstream.ZipFile(mode='w', compression=zipstream.ZIP_DEFLATED)
for root, dirs, files in os.walk(path):
for filename in files:
file_path = os.path.join(root, filename)
arcpath = os.path.join(path, os.path.relpath(file_path, path))
z.write(file_path, arcpath)
The text was updated successfully, but these errors were encountered:
I was just trying to do it. I made it just yesterday with an old version of ZipStream and it was more intuitive. Maybe an alternative method to write could be implemented that do exacly what showed in the example.
Thank you @minkwe and to all authors.
The example in README seems to imply that simply doing z.write('/path/to/files/') is sufficient but that generates empty archives. Something like:
The text was updated successfully, but these errors were encountered: