def CreateBinaryConfigPaths(token=None):
 required_urns = set()
 try:
  for platform in SUPPORTED_PLATFORMS:
   required_urns.add(('aff4:/config/executables/%s/agentupdates' % platform))
   required_urns.add(('aff4:/config/executables/%s/installers' % platform))
  existing_urns = [x['urn'] for x in aff4.FACTORY.Stat(list(required_urns), token=token)]
  missing_urns = (required_urns - set(existing_urns))
  for urn in missing_urns:
   aff4.FACTORY.Create(urn, aff4.AFF4Volume, token=token).Flush()
 except access_control.UnauthorizedAccess:
  logging.info('User is not admin, cannot check configuration tree.')
  return

def CreateBinaryConfigPaths ( token = None ) : required_urns = set ( ) try : for platform in SUPPORTED_PLATFORMS : required_urns . add ( ( 'aff4:/config/executables/%s/agentupdates' % platform ) ) required_urns . add ( ( 'aff4:/config/executables/%s/installers' % platform ) ) existing_urns = [ x [ 'urn' ] for x in aff4 . FACTORY . Stat ( list ( required_urns ) , token = token ) ] missing_urns = ( required_urns - set ( existing_urns ) ) for urn in missing_urns : aff4 . FACTORY . Create ( urn , aff4 . AFF4Volume , token = token ) . Flush ( ) except access_control . UnauthorizedAccess : logging . info ( 'User is not admin, cannot check configuration tree.' ) return
create the paths required for binary configs .