-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
gh-64978: Add chown() to pathlib.Path
#31212
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8906802
bpo-20779 add chown() and lchown() to Path() in pathlib
y0urself 5bb6b63
Add tests for chown() and lchown() for pathlib.Path()
y0urself dbdbbbe
Add patch entry to Misc/NEWS.d/next
y0urself d4070a3
Add documentation for chown and lchown, fix typo in lchmod
y0urself f9a611b
Improve and extend the tests
y0urself 06aebeb
Remove `lchown()`, don't expose `dir_fd`
y0urself cfae2d4
Apply suggestions from code review
y0urself File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add patch entry to Misc/NEWS.d/next
- Loading branch information
commit dbdbbbe7436fffd31a26e0840d1aea3c32e5ce68
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Library/2022-02-08-12-26-20.bpo-20779.Gha5Fa.rst
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Add :func:`pathlib.Path.chown` and :func:`pathlib.Path.lchown` | ||
| to :class:`pathlib.Path`. Patch by Jaspar Stach. | ||
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.
Uh oh!
There was an error while loading. Please reload this page.