Check and get file hashes