diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2024-06-03 15:13:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 15:13:07 (GMT) |
commit | 42a34ddb0b63e638905b01e17a7254623a0de427 (patch) | |
tree | 91a5a67346c3d852f8587a8a7369d7448f7ec5bb /Doc/library/zipfile.rst | |
parent | fd01271366abefa8f991e53f090387882fbd6bdd (diff) | |
download | cpython-42a34ddb0b63e638905b01e17a7254623a0de427.zip cpython-42a34ddb0b63e638905b01e17a7254623a0de427.tar.gz cpython-42a34ddb0b63e638905b01e17a7254623a0de427.tar.bz2 |
gh-119588: Implement zipfile.Path.is_symlink (zipp 3.19.0). (#119591)
Diffstat (limited to 'Doc/library/zipfile.rst')
-rw-r--r-- | Doc/library/zipfile.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index aad2028..a4d9a18 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -585,6 +585,15 @@ Path objects are traversable using the ``/`` operator or ``joinpath``. Return ``True`` if the current context references a file. +.. method:: Path.is_symlink() + + Return ``True`` if the current context references a symbolic link. + + .. versionadded:: 3.12 + + .. versionchanged:: 3.12.4 + Prior to 3.12.4, ``is_symlink`` would unconditionally return ``False``. + .. method:: Path.exists() Return ``True`` if the current context references a file or |