summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.path.rst
diff options
context:
space:
mode:
authorCharles Machalow <csm10495@gmail.com>2022-11-22 17:19:34 (GMT)
committerGitHub <noreply@github.com>2022-11-22 17:19:34 (GMT)
commit1b2de89bce7eee3c63ce2286f071db57cd2cfa22 (patch)
tree34dfc872d34c8468edb2b7ef37cb89055097846e /Doc/library/os.path.rst
parentc2102136be569e6fc8ed90181f229b46d07142f8 (diff)
downloadcpython-1b2de89bce7eee3c63ce2286f071db57cd2cfa22.zip
cpython-1b2de89bce7eee3c63ce2286f071db57cd2cfa22.tar.gz
cpython-1b2de89bce7eee3c63ce2286f071db57cd2cfa22.tar.bz2
gh-99547: Add isjunction methods for checking if a path is a junction (GH-99548)
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r--Doc/library/os.path.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index 6d52a03..50e0896 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -266,6 +266,15 @@ the :mod:`glob` module.)
Accepts a :term:`path-like object`.
+.. function:: isjunction(path)
+
+ Return ``True`` if *path* refers to an :func:`existing <lexists>` directory
+ entry that is a junction. Always return ``False`` if junctions are not
+ supported on the current platform.
+
+ .. versionadded:: 3.12
+
+
.. function:: islink(path)
Return ``True`` if *path* refers to an :func:`existing <exists>` directory