Allow creating hashes for a directory based on contents