Create a hash from contents in a directory