Skip to content

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