Skip to content

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

Merged
barneygale merged 1 commit into
python: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 into
python:mainfrom
barneygale:gh-125413-move-copyreadwrite

Conversation

@barneygale

@barneygalebarneygale commented Feb 8, 2025

Copy link
Copy Markdown
Contributor

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`.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@barneygale