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

10000
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

Conversation

akulakov
Copy link
Contributor
@akulakov akulakov commented Nov 20, 2021

https://bugs.python.org/issue45606

I've also added a follow_symlinks arg to exists() method because it seems more logical to be able to test if a path exists via the same method rather than having to also remember and to check for it being a symlink. This is also consistent with a few other Path methods; and it makes it more explicit and clearer that by default exists() follows symlinks, by looking at its signature (otherwise this may be a surprising behaviour).

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Dec 21, 2021
Copy link
Contributor
@MaxwellDupre MaxwellDupre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works on my Ubuntu and I see bot tests are ok, so ok with me.

Copy link
Contributor
@barneygale barneygale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good! Could you fix conflicts please?

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@barneygale barneygale changed the title bpo-45606: Pathlib - do not follow links when checking for precise glob match GH-89769: Pathlib - do not follow links when checking for precise glob match May 2, 2023
akulakov and others added 5 commits May 2, 2023 21:53
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Copy link
Contributor
@barneygale barneygale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last nit. Thanks!

@barneygale barneygale removed the stale Stale PR or inactive for long period of time. label May 3, 2023
@barneygale barneygale merged commit af886ff into python:main May 3, 2023
@barneygale
Copy link
Contributor

Thanks again, @akulakov

@akulakov
Copy link
Contributor Author
akulakov commented May 3, 2023

Thanks @barneygal A3F2 e for the review and merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants
0