mirror of
https://github.com/python/cpython.git
synced 2024-11-23 09:54:58 +08:00
0eb52f5f26
Don't bother calling `os.scandir()` to scan for literal pattern segments, like `foo` in `foo/*.py`. Instead, append the segment(s) as-is and call through to the next selector with `exists=False`, which signals that the path might not exist. Subsequent selectors will call `os.scandir()` or `os.lstat()` to filter out missing paths as needed. |
||
---|---|---|
.. | ||
__init__.py | ||
_abc.py |