This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import zipfile | |
| z = zipfile.ZipFile('my-archive.zip', 'w', zipfile.ZIP_DEFLATED) | |
| startdir = "/Users/owner/Devspace/" | |
| for dirpath, dirnames, filenames in os.walk(startdir): | |
| for filename in filenames: | |
| z.write(os.path.join(dirpath, filename)) | |
| z.close() |