]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-77609: Add follow_symlinks argument to `pathlib.Path.glob()` (GH-102616)
authorBarney Gale <barney.gale@gmail.com>
Mon, 29 May 2023 15:59:52 +0000 (16:59 +0100)
committerGitHub <noreply@github.com>
Mon, 29 May 2023 15:59:52 +0000 (16:59 +0100)
commitace676e2c2121f94a55effc6a30b3b0e987ae7da
tree45446ea82eda9526217298b32cbd49e51d91151a
parent1668b41dc477bc9562e4c50ab36a232839b4621b
GH-77609: Add follow_symlinks argument to `pathlib.Path.glob()` (GH-102616)

Add a keyword-only *follow_symlinks* parameter to `pathlib.Path.glob()` and`rglob()`.

When *follow_symlinks* is `None` (the default), these methods follow symlinks except when evaluating "`**`" wildcards. When set to true or false, symlinks are always or never followed, respectively.
Doc/library/pathlib.rst
Doc/whatsnew/3.13.rst
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2023-03-12-03-37-03.gh-issue-77609.aOQttm.rst [new file with mode: 0644]