You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee='https://github.com/akulakov'closed_at=Nonecreated_at=<Date2021-10-25.19:20:55.106>labels= ['type-bug', 'library', '3.9', '3.10', '3.11']
title='pathlib.Path.glob() does not list dangling symlink when pattern is the exact filename'updated_at=<Date2022-01-23.06:57:12.913>user='https://github.com/raek'
The issue is that _PreciseSelector follows the symlink when it checks if a path exists before yielding it as a result.
I've put up a PR with a fix; 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.
I will add docs and news a bit later today or tomorrow.