-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
GH-89769: Pathlib - do not follow links when checking for precise glob match #29655
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
Merged
barneygale
merged 15 commits into
python:main
from
akulakov:45606-Path-glob-no-follow-symlink
May 3, 2023
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
272c1b4
do not follow links when checking for precise glob match
akulakov 70db4c0
update docs for `exists()`
akulakov cf0f823
add news entry
akulakov 9107f3d
add docstring; fix the doctest error in the documentation
akulakov 4c40ea3
expand test_exists
akulakov 686cd34
fix typo in var name
akulakov 01ec5af
revert typo fix
akulakov 1d03f90
move symlink tests to conditional
akulakov 66700bf
Update Lib/pathlib.py
akulakov 0e07f88
Update Doc/library/pathlib.rst
akulakov 071f0f3
Update Lib/pathlib.py
akulakov 6cff634
Update Misc/NEWS.d/next/Library/2021-11-19-23-37-18.bpo-45606.UW5XE1.rst
akulakov 3818c31
update docstring
akulakov 4b6fefc
Merge branch 'main' into 45606-Path-glob-no-follow-symlink
barneygale 0093d52
Update Doc/library/pathlib.rst
akulakov 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 news entry
- Loading branch information
commit cf0f8236659ac3d8958a54c436ed1f46a0d4b6be
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
Misc/NEWS.d/next/Library/2021-11-19-23-37-18.bpo-45606.UW5XE1.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,5 @@ | ||
Fixed the bug in :meth:`~pathlib.Path.glob` -- previously a dangling symlink | ||
would not be found by this method when the pattern is an exact match, but | ||
would be found when the pattern contains a wildcard or the recursive | ||
wildcard (``**``). With this change, a dangling symlink will be found in | ||
both cases. |
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.