Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Create zip file of all necessary files
- zipf = zipfile.ZipFile(new_path+zip_file_name, 'w', zipfile.ZIP_DEFLATED)
- create_zip(new_path,zipf)
- zipf.close()
- def create_zip(path, zipfile):
- files = os.listdir(path)
- for file in files:
- if file != '.DS_Store':
- zipfile.write(file)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement