mirror of
https://github.com/python/cpython.git
synced 2024-12-03 23:06:43 +08:00
1b1f8398d0
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. |
||
---|---|---|
.. | ||
__init__.py | ||
_abc.py |