GH-102613: Fix recursion error from pathlib.Path.glob()
#104373
+18
−20
Merged