def _empty_dir(dir_: _P) -> _P:
    """Create a directory ensured to be empty. Existing files may be removed."""
    shutil.rmtree(dir_, ignore_errors=True)
    os.makedirs(dir_)
    return dir_
Create a directory ensured to be empty. Existing files may be removed.
product/gradle-plugin/src/main/python/setuptools/command/editable_wheel.py