GH-125413: pathlib ABCs: use caching `path.info.exists()` when globbing by barneygale · Pull Request #130422 · python/cpython
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.