8000 GH-89769: Pathlib - do not follow links when checking for precise glob match by akulakov · Pull Request #29655 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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
merged 15 commits into from
May 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update docstring
  • Loading branch information
akulakov committed May 3, 2023
commit 3818c3152d2104f34931131595e88abeb6aaad2f
5 changes: 2 additions & 3 deletions Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,9 +1285,8 @@ def exists(self, *, follow_symlinks=True):
"""
Whether this path exists.

If path is a symlink: with `follow_symlinks=True`, return True if path
pointed to by the symlink exists; with follow_symlinks=False, return
True if the symlink itself exists.
This method normally follows symlinks; to check whether a symlink exists,
add the argument follow_symlinks=False.
"""
try:
self.stat(follow_symlinks=follow_symlinks)
Expand Down
0