Skip to content

GH-125413: Move pathlib.Path.copy() implementation alongside Path.info#129856

Merged
barneygale merged 1 commit intopython:mainfrom
barneygale:gh-125413-move-copyreadwrite
Feb 9, 2025
Merged

GH-125413: Move pathlib.Path.copy() implementation alongside Path.info#129856
barneygale merged 1 commit intopython:mainfrom
barneygale:gh-125413-move-copyreadwrite

Conversation

@barneygale
Copy link
Contributor

@barneygale barneygale commented Feb 8, 2025

Move pathlib's internal CopyReader, LocalCopyReader, CopyWriter and LocalCopyWriter classes into pathlib._os, where they can live alongside the low-level copying functions (copyfileobj() etc) and caching path query interface (PathInfo).

This sets the stage for merging LocalCopyReader into PathInfo. No change of behaviour; just moving some code around.

…`Path.info`

Move pathlib's private `CopyReader`, `LocalCopyReader`, `CopyWriter` and
`LocalCopyWriter` classes into `pathlib._os`, where they can live alongside
the low-level copying functions (`copyfileobj()` etc) and high-level path
querying interface (`PathInfo`).

This sets the stage for merging `LocalCopyReader` into `PathInfo`.
@barneygale barneygale merged commit c88dacb into python:main Feb 9, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant