import hashlib


def get_file_hash(path, block_size=8192):
    """Calculates the content hash for the file at the given path."""
    md5 = hashlib.md5()
    with open(path, 'rb') as f:
        while True:
            block = f.read(block_size)
            if not block:
                break
            md5.update(block)
    return md5.hexdigest()