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
When pathlib.WindowsPath.glob() evaluates a literal (non-wildcard) pattern segment, it returns paths using the case of the pattern segment, rather than the real filesystem case. This problem does not affect segments involving * or ** wildcards.
>>>frompathlibimportWindowsPath>>>next(WindowsPath().glob('LIB/PATHLIB.*'))
WindowsPath('LIB/pathlib.py') # 'LIB' should be 'Lib'