-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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-73991: Support preserving metadata in pathlib.Path.copytree()
#121438
GH-73991: Support preserving metadata in pathlib.Path.copytree()
#121438
Conversation
Add *preserve_metadata* keyword-only argument to `pathlib.Path.copytree()`, defaulting to false. When set to true, we copy timestamps, permissions, extended attributes and flags where available, like `shutil.copystat()`.
|
|
|
Add preserve_metadata keyword-only argument to
pathlib.Path.copytree()
, defaulting to false. When set to true, we copy timestamps, permissions, extended attributes and flags where available, likeshutil.copystat()
.No news because
copytree()
is new in 3.14.📚 Documentation preview 📚: https://cpython-previews--121438.org.readthedocs.build/