mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Merge `_WindowsPathInfo` and `_PosixPathInfo` classes into a new `_StatResultInfo` class. On Windows, this means relying on `os.stat()` rather than `os.path.isfile()` and friends, which is a little slower. But there's value in making the code easier to maintain, and we're going to need the stat result for implementing `size()`, `mode()` etc. Also move the classes from `pathlib._os` to `pathlib` proper. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _os.py | ||
| types.py | ||