def rmdir(path, raise_if_not_exist=False):
    '''Recursive rm of a directory. If dir not exists
    only raise exception if raise_if_not_exist'''
    try:
        shutil.rmtree(path, onerror=_change_permissions)
    except __HOLE__ as err:
        if err.errno == ENOENT and not raise_if_not_exist:
            return
        raise
dataset/ETHPy150Open conan-io/conan/conans/util/files.py/rmdir