Create a gist now

Instantly share code, notes, and snippets.

@dyntopia /mkzip.py Secret
Created Jun 3, 2016

What would you like to do?
#!/usr/bin/python
import zipfile
fname = "AAAAAAAAxxxxBBBBCCCCCCCCxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
with zipfile.ZipFile("1.zip", "w") as z:
z.writestr(fname, "")
with zipfile.ZipFile("2.zip", "w") as z:
z.writestr("%s/b/c" % fname, "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment