def get_sum(path, form='sha256'):
    path = os.path.expanduser(path)

    if not os.path.isfile(path):
        return 'File not found'
    return salt.utils.get_hash(path, form, 4096)
Return the checksum for the given file. The following checksum algorithms
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/get_sum