summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2023-06-26 16:58:17 (GMT)
committerGitHub <noreply@github.com>2023-06-26 16:58:17 (GMT)
commit219effa876785408a87bd6acb37c07ee0d25f3f9 (patch)
treee23207f21e6fb329be9ba41c4a3321aab1600894 /Misc
parent5d4dbf0e309255e5bce9e31d805a8f950ebf9161 (diff)
downloadcpython-219effa876785408a87bd6acb37c07ee0d25f3f9.zip
cpython-219effa876785408a87bd6acb37c07ee0d25f3f9.tar.gz
cpython-219effa876785408a87bd6acb37c07ee0d25f3f9.tar.bz2
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()`.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-06-14-18-41-18.gh-issue-105793.YSoykM.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-06-14-18-41-18.gh-issue-105793.YSoykM.rst b/Misc/NEWS.d/next/Library/2023-06-14-18-41-18.gh-issue-105793.YSoykM.rst
new file mode 100644
index 0000000..0e4090e
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-06-14-18-41-18.gh-issue-105793.YSoykM.rst
@@ -0,0 +1,2 @@
+Add *follow_symlinks* keyword-only argument to :meth:`pathlib.Path.is_dir` and
+:meth:`~pathlib.Path.is_file`, defaulting to ``True``.