const correctness, build zip directory tree