]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-105793: Add follow_symlinks argument to `pathlib.Path.is_dir()` and `is_file(...
authorBarney Gale <barney.gale@gmail.com>
Mon, 26 Jun 2023 16:58:17 +0000 (17:58 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Jun 2023 16:58:17 +0000 (17:58 +0100)
commit219effa876785408a87bd6acb37c07ee0d25f3f9
treee23207f21e6fb329be9ba41c4a3321aab1600894
parent5d4dbf0e309255e5bce9e31d805a8f950ebf9161
GH-105793: Add follow_symlinks argument to `pathlib.Path.is_dir()` and `is_file()` (GH-105794)

Brings `pathlib.Path.is_dir()` and `in line with `os.DirEntry.is_dir()`, which
will be important for implementing generic path walking and globbing.
Likewise `is_file()`.
Doc/library/pathlib.rst
Doc/whatsnew/3.13.rst
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2023-06-14-18-41-18.gh-issue-105793.YSoykM.rst [new file with mode: 0644]