Skip to content
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

GH-128520: Read path metadata from pathlib.types.PathInfo when copying #129841

Closed
wants to merge 1 commit into from

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Feb 8, 2025

Add private PathInfo._stat() and _xattrs() methods, which are called when copying metadata to a local path. This removes all need for the CopyReader and _LocalCopyReader classes, so we delete them. The CopyWriter and _LocalCopyWriter classes are moved into pathlib._os, renamed to Copier and LocalCopier, and refactored so that only one copier object is created per copy operation.

This internal refactor shouldn't have any user-facing impact.

…n copying

Add private `PathInfo._stat()` and `_xattrs()` methods, which are called
when copying metadata to a local path. This removes all need for the
`CopyReader` and `_LocalCopyReader` classes, so we delete them. The
`CopyWriter` and `_LocalCopyWriter` classes are moved into `pathlib._os`,
renamed to `Copier` and `LocalCopier`, and refactored so that only one
copier object is created per copy operation.

This internal refactor shouldn't have any user-facing impact.
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