mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
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 | ||