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)

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 .