Use an accurate size estimate when deciding whether to include a file or not.
Add the redirects first.
Check against space already used by redirects when determining whether to put the subdirs in.
Track the space used by files if they were all redirects, and avoid going over the limit. This set of commits should fix the bogus too-many-files exceptions.
Fix bogus too-many-files error: Grab the redirects from the right map. :)
Add assertion
Build 1430, at last.