GH-127381: pathlib ABCs: remove `PathBase.unlink()` and `rmdir()` (#127736)
Virtual filesystems don't always make a distinction between deleting files and empty directories, and sometimes support deleting non-empty directories in a single operation. Here we remove `PathBase.unlink()` and `rmdir()`, leaving `_delete()` as the sole deletion method, now made abstract. I hope to drop the underscore prefix later on.
B
Barney Gale committed
7f8ec523021427a5c1ab3ce0cdd6e4bb909f1dc5
Parent: 2367759
Committed by GitHub <noreply@github.com>
on 12/8/2024, 6:45:09 PM