Created
May 29, 2012 03:14
-
-
Save AhnSeongHyun/2822327 to your computer and use it in GitHub Desktop.
[PYTHON]toZip
This file contains 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 | |
def toZip(file_list, zip_file_name): | |
zippedHelp = zipfile.ZipFile("./"+zip_file_name, "w", compression=zipfile.ZIP_DEFLATED ) | |
for file in file_list: | |
zippedHelp.write("./"+file); | |
zippedHelp.close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment