cpython/Lib/pathlib
Barney Gale 1b1f8398d0
GH-106747: Make pathlib ABC globbing more consistent with `glob.glob()` (#115056)
When expanding `**` wildcards, ensure we add a trailing slash to the
topmost directory path. This matches `glob.glob()` behaviour:

    >>> glob.glob('dirA/**', recursive=True)
    ['dirA/', 'dirA/dirB', 'dirA/dirB/dirC']

This does not affect `pathlib.Path.glob()`, because trailing slashes aren't
supported in pathlib proper.
2024-02-06 02:48:18 +00:00
..
__init__.py pathlib ABCs: raise `UnsupportedOperation` directly. (#114776) 2024-01-31 00:38:01 +00:00
_abc.py GH-106747: Make pathlib ABC globbing more consistent with `glob.glob()` (#115056) 2024-02-06 02:48:18 +00:00