server: Create file paths as needed
authorW. Trevor King <wking@tremily.us>
Thu, 20 Feb 2014 20:48:22 +0000 (12:48 -0800)
committerW. Trevor King <wking@tremily.us>
Thu, 20 Feb 2014 20:48:22 +0000 (12:48 -0800)
commitf4c336b7b6dffef0fbb37397213dcae6310ccfde
tree87f34f2df13eedc01f9271409a272fe43ad685b2
parent1d56acc9a6cda51549f2fcbdc05d9b2d7edbb2cd
server: Create file paths as needed

Add support for non-flat source file layouts (e.g. relative paths that
contain directory parts).

Instead of creating the cache directory and possible per-file
subdirectories separately, just create per-file directories on the
fly.  This simplifies the code, but means that you won't die until the
first request if your server doesn't have permission to create these
directories.
package_cache/server.py