Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2025

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant