I've uploaded a copy of servezip.py to a new home on GitHub.

You might find it useful by itself or just as a quick reminder of how to recurse directories the Python way.

README

Run with: python servezip.py

Point your browser at http://localhost:8000/ and the contents of the directory where you started servezip.py will be made available (including any subdirectories). If you want to download the contents of any particular directory, navigate to it and add the name of the zip file you want to create to the end of the URL.

For example, to download all files and subdirectories of the directory http://localhost:8000/foo/bar enter the url: http://localhost:8000/foo/bar/foobar.zip

The zip file can have any name you want, as long as there isn't a zip file in that directory with that name already (otherwise you'll just get the contents of the existing zip file).

Comment

You can leave a comment by twittering with the text http://dogg.ie/.2bwb69 anywhere in your tweet. The link below will do this for you with pure magic (and some glue).

Sometime in the next 5 minutes, if everything goes to plan, your comment will appear on this page. If you can't fit everything you want to say into 117 characters, write a blog post and tweet a link to that.

Take me to Twitter, I've got something to say.

Comments

None yet.