Skip to content

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Feb 21, 2025

Call ReadablePath.info.exists() rather than ReadablePath.exists() when globbing so that we use (or populate) the info cache.

No change to Path.glob(), which uses glob._StringGlobber (hence os.lexists()) rather than glob._PathGlobber.

…globbing

Call `ReadablePath.info.exists()` rather than `ReadablePath.exists()` when
globbing so that we use (or populate) the `info` cache.
@barneygale barneygale merged commit 48c84a4 into python:main Feb 24, 2025
38 checks passed
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
…globbing (python#130422)

Call `ReadablePath.info.exists()` rather than `ReadablePath.exists()` when
globbing so that we use (or populate) the `info` cache.
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.

1 participant