GH-129835: Yield path with trailing slash from `ReadablePath.glob('')` (#129836)
In the private pathlib ABCs, make `ReadablePath.glob('')` yield a path with
a trailing slash (if it yields anything at all). As a result, `glob()`
works similarly to `joinpath()` when given a non-magic pattern.
In the globbing implementation, we preemptively add trailing slashes to
intermediate paths if there are pattern parts remaining; this removes the
need to check for existing trailing slashes (in the removed `add_slash()`
method) at subsequent steps. B
Barney Gale committed
707d066193c26ab66c8e5e45e72c3a37f48daf45
Parent: 6c67904
Committed by GitHub <noreply@github.com>
on 2/8/2025, 6:47:09 AM