-
-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-73991: Support preserving metadata in pathlib.Path.copy()
#120806
Merged
Merged
Commits on Jun 20, 2024
-
pythonGH-73991: Support preserving metadata in
pathlib.Path.copy()
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 `shutil.copystat()`. The argument has no effect on Windows, where metadata is always copied. In the pathlib ABCs we copy the file permissions with `PathBase.chmod()` where supported. In the future we might want to support a more generic public interface for copying metadata between different types of `PathBase` object, but it would be premature here.
Configuration menu - View commit details
-
Copy full SHA for ff025ff - Browse repository at this point
Copy the full SHA ff025ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 720a0e0 - Browse repository at this point
Copy the full SHA 720a0e0View commit details
Commits on Jun 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c14d16f - Browse repository at this point
Copy the full SHA c14d16fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f54925c - Browse repository at this point
Copy the full SHA f54925cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b05256b - Browse repository at this point
Copy the full SHA b05256bView commit details
Commits on Jun 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ee2cd35 - Browse repository at this point
Copy the full SHA ee2cd35View commit details
Commits on Jun 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for da6cd5b - Browse repository at this point
Copy the full SHA da6cd5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 211b861 - Browse repository at this point
Copy the full SHA 211b861View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8129c46 - Browse repository at this point
Copy the full SHA 8129c46View commit details
Commits on Jun 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 15cc3db - Browse repository at this point
Copy the full SHA 15cc3dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89dfad5 - Browse repository at this point
Copy the full SHA 89dfad5View commit details
Commits on Jul 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d312469 - Browse repository at this point
Copy the full SHA d312469View commit details -
Configuration menu - View commit details
-
Copy full SHA for 547a3c3 - Browse repository at this point
Copy the full SHA 547a3c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for f584643 - Browse repository at this point
Copy the full SHA f584643View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3206a89 - Browse repository at this point
Copy the full SHA 3206a89View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.