gh-92550 - Fix regression in `pathlib.Path.rglob()` (GH-92583)
We could try to remedy this by taking a slice, but we then run into an issue where the empty string will match altsep on POSIX. That rabbit hole could keep getting deeper. A proper fix for the original issue involves making pathlib's path normalisation more configurable - in this case we want to retain trailing slashes, but in other we might want to preserve `./` prefixes, or elide `../` segments when we're sure we won't encounter symlinks. This reverts commit ea2f5bcda1a392804487e6883be89fbad38a01a5. (cherry picked from commit dcdf250d2de1428f7d8b4e9ecf51d2fd8200e21a) Co-authored-by: Barney Gale <barney.gale@gmail.com>
M
Miss Islington (bot) committed
a51baec9ce0eae2b4db069a55daf8f03be3ab2f4
Parent: a86229e
Committed by GitHub <noreply@github.com>
on 5/10/2022, 12:39:43 AM