cpython/Lib/pathlib
Barney Gale 6150bb2412
GH-77609: Add recurse_symlinks argument to `pathlib.Path.glob()` (#117311)
Replace tri-state `follow_symlinks` with boolean `recurse_symlinks` argument. The new argument controls whether symlinks are followed when expanding recursive `**` wildcards. The possible argument values correspond as follows:

    follow_symlinks  recurse_symlinks
    ===============  ================
    False            N/A
    None             False
    True             True

We therefore drop support for not following symlinks when expanding non-recursive pattern parts; it wasn't requested in the original issue, and it's a feature not found in any shells.

This makes the API a easier to grok by eliminating `None` as an option.

No news blurb as `follow_symlinks` was new in 3.13.
2024-04-05 18:51:54 +00:00
..
__init__.py GH-77609: Add recurse_symlinks argument to `pathlib.Path.glob()` (#117311) 2024-04-05 18:51:54 +00:00
_abc.py GH-77609: Add recurse_symlinks argument to `pathlib.Path.glob()` (#117311) 2024-04-05 18:51:54 +00:00