Unit Tests, Robocopy and Shallow Mirroring

To increase the fidelity of a set of unit tests I needed to mirror a directory structure. The catch is that there are huge files that I don't want to copy. My first thought was to write a program that only copies the first N bytes of each file while mirroring the directory structure.

On a lark I figured I'd check if robocopy could do something like this. Turns out that it can! Dozens of gigs of bits conserved! Thanks robocopy!

robocopy srcdir destdir /E /CREATE

No comments:

Post a Comment