Compare the hash of the file with the filename.