pioneerspacesim/pioneer — pull request #1270 by robn (2012-05-22 11:25:12+00:00)
Title: Fix FileSourceZip file index

Current version has two problems:
* It assumes that zip files will always contain an explicit directory entry for each inner directory in a file's path. This is not necessarily the case. When this occurs, it `ReadDirectory` will fail to find the children.
* `ReadDirectory` populates the file list with all files under the given directory, regardless of depth (but still missing the inner directories).

This patch replaces the index with a full tree reflecting the directory and file structure. It also creates inner directory entries if they haven't been seen yet, ensuring that they are found later by `ReadDirectory`.