create mtime-equivalent directory mirror with files filled with zeros
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

flatzip creates a mtime-equivalent mirror of a directory with all files filled with zeros for easy compression. It is useful for distributing a directory tree as seen by a build system for performance discussions.

Build it with go 1:

go build

Run it to mirror a directory:

flatzip \path\to\src outputdir

Then zip the output and distribute.