cpython/Lib/pathlib
Barney Gale 707d066193
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.
2025-02-08 06:47:09 +00:00
..
__init__.py GH-127807: pathlib ABCs: remove PathBase._unsupported_msg() (#127855) 2024-12-12 17:39:24 +00:00
_abc.py GH-129835: Yield path with trailing slash from ReadablePath.glob('') (#129836) 2025-02-08 06:47:09 +00:00
_local.py GH-129835: Yield path with trailing slash from ReadablePath.glob('') (#129836) 2025-02-08 06:47:09 +00:00
_os.py GH-125413: Add pathlib.Path.info attribute (#127730) 2025-02-08 01:16:45 +00:00
types.py GH-125413: Add pathlib.Path.info attribute (#127730) 2025-02-08 01:16:45 +00:00