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. B
Barney Gale committed
1b1f8398d0ffe3c8ba2cca79d0c0f19a6a34e72a
Parent: 299e16c
Committed by GitHub <noreply@github.com>
on 2/6/2024, 2:48:18 AM