mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
[3.13] gh-119588: Implement zipfile.Path.is_symlink (zipp 3.19.0). (GH-119591) (#119985)
gh-119588: Implement zipfile.Path.is_symlink (zipp 3.19.0). (GH-119591)
(cherry picked from commit 42a34ddb0b
)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
This commit is contained in:
parent
23ebf87eaa
commit
34a6d89788
4 changed files with 32 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue