mirror of https://github.com/python/cpython
37651cfbce
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. |
||
---|---|---|
.. | ||
__init__.py | ||
_abc.py | ||
_local.py | ||
_os.py |