add function which returns hash consisting of all files (and their names) in prefix