A simple function for computing the hash of the contents of an entire directory