def CleanDirectory(self, directory):
    logging.info("Clearing directory %s", directory)
    try:
      shutil.rmtree(directory)
    except __HOLE__:
      pass

    utils.EnsureDirExists(directory)
dataset/ETHPy150Open google/grr/grr/lib/build.py/ClientBuilder.CleanDirectory