def make_or_verify_core_dir(directory, mode, uid, strict):
 try:
  util.make_or_verify_dir(directory, mode, uid, strict)
 except OSError as error:
  raise errors.Error(_PERM_ERR_FMT.format(error))

def make_or_verify_core_dir ( directory , mode , uid , strict ) : try : util . make_or_verify_dir ( directory , mode , uid , strict ) except OSError as error : raise errors . Error ( _PERM_ERR_FMT . format ( error ) )
make sure directory exists with proper permissions .