Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-125413: Add privatepathlib.Path method to write metadata#130238

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
barneygale merged 4 commits intopython:mainfrombarneygale:gh-129897-del-copywriter
Feb 26, 2025

Conversation

barneygale
Copy link
Contributor

@barneygalebarneygale commentedFeb 17, 2025
edited by bedevere-appbot
Loading

ReplaceWritablePath._copy_writer with a new_write_info() method. This method allows the target of acopy() to preserve metadata.

Replacepathlib._os.CopyWriter andLocalCopyWriter classes with newcopy_file() andcopy_info() functions. Thecopy_file() function usessource_path.info wherever possible to save onstat()s.

Replace `WritablePath._copy_writer` with a new `_write_info()` method. Thismethod allows the target of a `copy()` to preserve metadata.Replace `pathlib._os.CopyWriter` and `LocalCopyWriter` classes with new`copy_file()` and `copy_info()` functions. The `copy_file()` function uses`source_path.info` wherever possible to save on `stat()`s.
@barneygalebarneygale changed the titleGH-129897: Add privatepathlib.Path method to write metadataGH-125413: Add privatepathlib.Path method to write metadataFeb 17, 2025
@barneygalebarneygale marked this pull request as draftFebruary 17, 2025 20:05
@barneygalebarneygale merged commitb251d40 intopython:mainFeb 26, 2025
39 checks passed
seehwan pushed a commit to seehwan/cpython that referenced this pull requestApr 16, 2025
…ython#130238)Replace `WritablePath._copy_writer` with a new `_write_info()` method. Thismethod allows the target of a `copy()` to preserve metadata.Replace `pathlib._os.CopyWriter` and `LocalCopyWriter` classes with new`copy_file()` and `copy_info()` functions. The `copy_file()` function uses`source_path.info` wherever possible to save on `stat()`s.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@barneygale

[8]ページ先頭

©2009-2025 Movatter.jp