forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythonGH-128520: Read path metadata from
pathlib.types.PathInfo
whe…
…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.
- Loading branch information
1 parent
718ab66
commit 1fb81f5
Showing
3 changed files
with
271 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.