Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fp = open('myzip.zip', 'w')
- archive = zipfile.ZipFile(fp, 'w', zipfile.ZIP_DEFLATED)
- for filepath in filepaths:
- archive.write(filepath)
- archive.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement