René's URL Explorer Experiment


Title: GH-73991: Support preserving metadata in `pathlib.Path.copy()` by barneygale · Pull Request #120806 · python/cpython · GitHub

Open Graph Title: GH-73991: Support preserving metadata in `pathlib.Path.copy()` by barneygale · Pull Request #120806 · python/cpython

X Title: GH-73991: Support preserving metadata in `pathlib.Path.copy()` by barneygale · Pull Request #120806 · python/cpython

Description: Add preserve_metadata keyword-only argument to pathlib.Path.copy(), defaulting to false. When set to true, we copy timestamps, permissions, extended attributes and flags where available, like shuti...

Open Graph Description: Add preserve_metadata keyword-only argument to pathlib.Path.copy(), defaulting to false. When set to true, we copy timestamps, permissions, extended attributes and flags where available, like shuti...

X Description: Add preserve_metadata keyword-only argument to pathlib.Path.copy(), defaulting to false. When set to true, we copy timestamps, permissions, extended attributes and flags where available, like shuti...

Opengraph URL: https://github.com/python/cpython/pull/120806

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:6d29ae4e-f8c0-b009-f4f6-ce279e73891c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC92C:388B78:9D082B:CAF8A8:696AF5C8
html-safe-noncea9a2a3783a6313a0d18ce5805e4eb9ba07627b9b2b372f288b607b6405f9ca25
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTJDOjM4OEI3ODo5RDA4MkI6Q0FGOEE4OjY5NkFGNUM4IiwidmlzaXRvcl9pZCI6IjU3NTk4MjI0NzQ3MDYyNjI0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8f165584c2917fe87a9e413e09ae847be451f38d9423e45aaffa1eb74d1649a9
hovercard-subject-tagpull_request:1931118041
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/120806/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5c6f5f6b2a2d991dc228f7f2e7419eca8ab6c5a356589929045f44eddc1c6ccf/python/cpython/pull/120806
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5c6f5f6b2a2d991dc228f7f2e7419eca8ab6c5a356589929045f44eddc1c6ccf/python/cpython/pull/120806
og:image:altAdd preserve_metadata keyword-only argument to pathlib.Path.copy(), defaulting to false. When set to true, we copy timestamps, permissions, extended attributes and flags where available, like shuti...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarneygale
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/120806#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120806
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120806
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/120806
Reloadhttps://github.com/python/cpython/pull/120806
Reloadhttps://github.com/python/cpython/pull/120806
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/120806
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/120806
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/120806#issue-comment-box
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:copy-metadatahttps://github.com/barneygale/cpython/tree/copy-metadata
GH-73991: Support preserving metadata in pathlib.Path.copy() https://github.com/python/cpython/pull/120806#top
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:copy-metadatahttps://github.com/barneygale/cpython/tree/copy-metadata
Conversation 2 https://github.com/python/cpython/pull/120806
Commits 15 https://github.com/python/cpython/pull/120806/commits
Checks 0 https://github.com/python/cpython/pull/120806/checks
Files changed 5 https://github.com/python/cpython/pull/120806/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Jun 20, 2024https://github.com/python/cpython/pull/120806#issue-2365000234
Please reload this pagehttps://github.com/python/cpython/pull/120806
Support moving across filesystems in pathlib.Path, as shutil.move() does #73991https://github.com/python/cpython/issues/73991
https://cpython-previews--120806.org.readthedocs.build/https://cpython-previews--120806.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/120806
https://github.com/barneygale
pythonGH-73991https://github.com/python/cpython/issues/73991
: Support preserving metadata inhttps://github.com/python/cpython/pull/120806/commits/ff025ff3e3563fd31c69cf9445d7726223437cce
pathlib.Path.copy()https://github.com/python/cpython/pull/120806/commits/ff025ff3e3563fd31c69cf9445d7726223437cce
ff025ffhttps://github.com/python/cpython/pull/120806/commits/ff025ff3e3563fd31c69cf9445d7726223437cce
https://github.com/barneygale
barneygalehttps://github.com/barneygale
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
topic-pathlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-pathlib
Jun 20, 2024https://github.com/python/cpython/pull/120806#event-13232864899
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 20, 2024 https://github.com/python/cpython/pull/120806#ref-issue-1198970031
Support moving across filesystems in pathlib.Path, as shutil.move() does #73991 https://github.com/python/cpython/issues/73991
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jun 20, 2024https://github.com/python/cpython/pull/120806#event-13232866058
barneygalehttps://github.com/barneygale
June 20, 2024 19:20https://github.com/python/cpython/pull/120806#commits-pushed-720a0e0
https://github.com/barneygale
Test timestampshttps://github.com/python/cpython/pull/120806/commits/720a0e0f65a53db1b175fed2c4e9a4a3f711261d
720a0e0https://github.com/python/cpython/pull/120806/commits/720a0e0f65a53db1b175fed2c4e9a4a3f711261d
https://github.com/barneygale
Typoshttps://github.com/python/cpython/pull/120806/commits/c14d16f8a3e807a7234987531a6e8e3e755c976b
c14d16fhttps://github.com/python/cpython/pull/120806/commits/c14d16f8a3e807a7234987531a6e8e3e755c976b
https://github.com/barneygale
Use code from shutil.https://github.com/python/cpython/pull/120806/commits/f54925c8e086deb02c100f308e143678df12ded4
f54925chttps://github.com/python/cpython/pull/120806/commits/f54925c8e086deb02c100f308e143678df12ded4
https://github.com/barneygale
Tighten conditions.https://github.com/python/cpython/pull/120806/commits/b05256b9fab329d865221b471df97c6952fa7834
b05256bhttps://github.com/python/cpython/pull/120806/commits/b05256b9fab329d865221b471df97c6952fa7834
https://github.com/barneygale
Merge branch 'main' into copy-metadatahttps://github.com/python/cpython/pull/120806/commits/ee2cd35faeef7017ba0a4e193dd1d15cc5fd325a
ee2cd35https://github.com/python/cpython/pull/120806/commits/ee2cd35faeef7017ba0a4e193dd1d15cc5fd325a
https://github.com/barneygale
Merge branch 'main' into copy-metadatahttps://github.com/python/cpython/pull/120806/commits/da6cd5b4164ce6f4b64813601a2549103402a882
da6cd5bhttps://github.com/python/cpython/pull/120806/commits/da6cd5b4164ce6f4b64813601a2549103402a882
https://github.com/barneygale
Undo shutil changes.https://github.com/python/cpython/pull/120806/commits/211b861bf35038f11deaf8151602e8329776ca64
211b861https://github.com/python/cpython/pull/120806/commits/211b861bf35038f11deaf8151602e8329776ca64
https://github.com/barneygale
Remove some code that's now unused.https://github.com/python/cpython/pull/120806/commits/8129c4670f33b94933cb2e44e7f01418aef5dd35
8129c46https://github.com/python/cpython/pull/120806/commits/8129c4670f33b94933cb2e44e7f01418aef5dd35
https://github.com/barneygale
docstrings, re-order methods.https://github.com/python/cpython/pull/120806/commits/15cc3db3e8ef1742b5c627578e4683ee0e994312
15cc3dbhttps://github.com/python/cpython/pull/120806/commits/15cc3db3e8ef1742b5c627578e4683ee0e994312
https://github.com/barneygale
Skip retrieving metadata if we're unable to set it on the target.https://github.com/python/cpython/pull/120806/commits/89dfad5d4975241219d248d30107ca6221fe5f35
89dfad5https://github.com/python/cpython/pull/120806/commits/89dfad5d4975241219d248d30107ca6221fe5f35
https://github.com/barneygale
Merge branch 'main' into copy-metadatahttps://github.com/python/cpython/pull/120806/commits/d31246907f67e9d9cc39dda34b3c8c380b5e6fd9
d312469https://github.com/python/cpython/pull/120806/commits/d31246907f67e9d9cc39dda34b3c8c380b5e6fd9
https://github.com/barneygale
Fix double lookup.https://github.com/python/cpython/pull/120806/commits/547a3c3a093667e665d5be78962f086f2f91fb9b
547a3c3https://github.com/python/cpython/pull/120806/commits/547a3c3a093667e665d5be78962f086f2f91fb9b
https://github.com/barneygale
Rename methods.https://github.com/python/cpython/pull/120806/commits/f5846438af47486d493c3dffd35c64f475148897
f584643https://github.com/python/cpython/pull/120806/commits/f5846438af47486d493c3dffd35c64f475148897
https://github.com/barneygale
Tweakshttps://github.com/python/cpython/pull/120806/commits/3206a89bdd42b517568731708c3c306eb9ea3adb
3206a89https://github.com/python/cpython/pull/120806/commits/3206a89bdd42b517568731708c3c306eb9ea3adb
https://github.com/barneygale
barneygalehttps://github.com/barneygale
88fc065https://github.com/python/cpython/commit/88fc0655d4a487233efce293277690a799706bf9
Jul 6, 2024https://github.com/python/cpython/pull/120806#event-13411818780
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jul 6, 2024https://github.com/python/cpython/pull/120806#event-13411818846
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Jul 6, 2024https://github.com/python/cpython/pull/120806#issuecomment-2211839441
88fc065https://github.com/python/cpython/commit/88fc0655d4a487233efce293277690a799706bf9
the buildbot page in the devguidehttps://devguide.python.org/buildbots/
https://buildbot.python.org/all/#builders/451/builds/4646https://buildbot.python.org/all/#builders/451/builds/4646
88fc065https://github.com/python/cpython/commit/88fc0655d4a487233efce293277690a799706bf9
https://buildbot.python.org/all/#builders/451/builds/4646https://buildbot.python.org/all/#builders/451/builds/4646
Please reload this pagehttps://github.com/python/cpython/pull/120806
barneygalehttps://github.com/barneygale
Jul 6, 2024 https://github.com/python/cpython/pull/120806#ref-commit-ccd9928
https://github.com/barneygale
pythonGH-73991https://github.com/python/cpython/issues/73991
: Fix "Operation not supported" on Fedora buildbot.https://github.com/barneygale/cpython/commit/ccd99280795fc35284cb003c0ca44c7ca0cda389
ccd9928https://github.com/barneygale/cpython/commit/ccd99280795fc35284cb003c0ca44c7ca0cda389
python#120806https://github.com/python/cpython/pull/120806
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Jul 6, 2024 https://github.com/python/cpython/pull/120806#ref-pullrequest-2393659115
GH-73991: Fix "Operation not supported" on Fedora buildbot. #121444 https://github.com/python/cpython/pull/121444
barneygalehttps://github.com/barneygale
Jul 7, 2024 https://github.com/python/cpython/pull/120806#ref-commit-b765e4a
https://github.com/barneygale
GH-73991https://github.com/python/cpython/issues/73991
: Fix "Operation not supported" on Fedora buildbot. (https://github.com/python/cpython/commit/b765e4adf858ff8a8646f38933a5a355b6d72760
#121444https://github.com/python/cpython/pull/121444
)https://github.com/python/cpython/commit/b765e4adf858ff8a8646f38933a5a355b6d72760
b765e4ahttps://github.com/python/cpython/commit/b765e4adf858ff8a8646f38933a5a355b6d72760
#120806https://github.com/python/cpython/pull/120806
noahbkimhttps://github.com/noahbkim
Jul 11, 2024 https://github.com/python/cpython/pull/120806#ref-commit-4ab19a9
https://github.com/barneygale
https://github.com/noahbkim
pythonGH-73991https://github.com/python/cpython/issues/73991
: Support preserving metadata inhttps://github.com/hudson-trading/cpython/commit/4ab19a926d3d1c14e13de3732c8b9b73efe916d5
pathlib.Path.copy()https://github.com/hudson-trading/cpython/commit/4ab19a926d3d1c14e13de3732c8b9b73efe916d5
(https://github.com/hudson-trading/cpython/commit/4ab19a926d3d1c14e13de3732c8b9b73efe916d5
p…https://github.com/python/cpython/pull/120806
4ab19a9https://github.com/hudson-trading/cpython/commit/4ab19a926d3d1c14e13de3732c8b9b73efe916d5
…ython#120806https://github.com/python/cpython/pull/120806
noahbkimhttps://github.com/noahbkim
Jul 11, 2024 https://github.com/python/cpython/pull/120806#ref-commit-4f4a45c
https://github.com/barneygale
https://github.com/noahbkim
pythonGH-73991https://github.com/python/cpython/issues/73991
: Fix "Operation not supported" on Fedora buildbot. (https://github.com/hudson-trading/cpython/commit/4f4a45cc05ed4efd725f8715d7a0b561ca41caf8
py…https://github.com/python/cpython/pull/121444
4f4a45chttps://github.com/hudson-trading/cpython/commit/4f4a45cc05ed4efd725f8715d7a0b561ca41caf8
…thon#121444https://github.com/python/cpython/pull/121444
python#120806https://github.com/python/cpython/pull/120806
estyxxhttps://github.com/estyxx
Jul 17, 2024 https://github.com/python/cpython/pull/120806#ref-commit-577c9ca
https://github.com/barneygale
https://github.com/estyxx
pythonGH-73991https://github.com/python/cpython/issues/73991
: Support preserving metadata inhttps://github.com/estyxx/cpython/commit/577c9ca948cff59c98078c1002a4282f96de4857
pathlib.Path.copy()https://github.com/estyxx/cpython/commit/577c9ca948cff59c98078c1002a4282f96de4857
(https://github.com/estyxx/cpython/commit/577c9ca948cff59c98078c1002a4282f96de4857
p…https://github.com/python/cpython/pull/120806
577c9cahttps://github.com/estyxx/cpython/commit/577c9ca948cff59c98078c1002a4282f96de4857
…ython#120806https://github.com/python/cpython/pull/120806
estyxxhttps://github.com/estyxx
Jul 17, 2024 https://github.com/python/cpython/pull/120806#ref-commit-5aa4c45
https://github.com/barneygale
https://github.com/estyxx
pythonGH-73991https://github.com/python/cpython/issues/73991
: Fix "Operation not supported" on Fedora buildbot. (https://github.com/estyxx/cpython/commit/5aa4c450e85990f67163fd57c8cb179406e46e78
py…https://github.com/python/cpython/pull/121444
5aa4c45https://github.com/estyxx/cpython/commit/5aa4c450e85990f67163fd57c8cb179406e46e78
…thon#121444https://github.com/python/cpython/pull/121444
python#120806https://github.com/python/cpython/pull/120806
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120806
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
topic-pathlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-pathlib
Please reload this pagehttps://github.com/python/cpython/pull/120806
https://github.com/barneygale
https://github.com/bedevere-bot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.