def rmdir(path, quiet=True):
    if not isdir(path):
        return
    try:
        LOG.debug("Deleting directory %r with the cavet that we will fail if it's not empty." % (path))
        os.rmdir(path)
        LOG.debug("Deleted directory %r" % (path))
    except __HOLE__:
        if not quiet:
            raise
        else:
            pass
dataset/ETHPy150Open openstack/anvil/anvil/shell.py/rmdir