cpython/Lib/pathlib
Barney Gale 37651cfbce
GH-125413: pathlib ABCs: use `scandir()` to speed up `walk()` (#126262)
Use the new `PathBase.scandir()` method in `PathBase.walk()`, which greatly
reduces the number of `PathBase.stat()` calls needed when walking.

There are no user-facing changes, because the pathlib ABCs are still
private and `Path.walk()` doesn't use the implementation in its superclass.
2024-11-01 18:52:00 +00:00
..
__init__.py GH-73991: Rework `pathlib.Path.copytree()` into `copy()` (#122369) 2024-08-11 22:43:18 +01:00
_abc.py GH-125413: pathlib ABCs: use `scandir()` to speed up `walk()` (#126262) 2024-11-01 18:52:00 +00:00
_local.py GH-125413: Add `pathlib.Path.scandir()` method (#126060) 2024-11-01 01:19:01 +00:00
_os.py GH-122890: Fix low-level error handling in `pathlib.Path.copy()` (#122897) 2024-08-24 15:11:39 +01:00