cpython/Lib/pathlib
Barney Gale 094375b9b7
GH-73991: Add pathlib.Path.rmtree() (#119060)
Add a `Path.rmtree()` method that removes an entire directory tree, like
`shutil.rmtree()`. The signature of the optional *on_error* argument
matches the `Path.walk()` argument of the same name, but differs from the
*onexc* and *onerror* arguments to `shutil.rmtree()`. Consistency within
pathlib is probably more important.

In the private pathlib ABCs, we add an implementation based on `walk()`.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-07-20 20:14:13 +00:00
..
__init__.py GH-73991: Support copying directory symlinks on older Windows (#120807) 2024-07-03 04:30:29 +01:00
_abc.py GH-73991: Add pathlib.Path.rmtree() (#119060) 2024-07-20 20:14:13 +00:00
_local.py GH-73991: Add pathlib.Path.rmtree() (#119060) 2024-07-20 20:14:13 +00:00
_os.py GH-73991: Support preserving metadata in pathlib.Path.copy() (#120806) 2024-07-06 17:18:39 +01:00