mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-99547: Add isjunction methods for checking if a path is a junction (GH-99548)
This commit is contained in:
parent
c2102136be
commit
1b2de89bce
15 changed files with 182 additions and 24 deletions
|
|
@ -891,6 +891,14 @@ call fails (for example because the path doesn't exist).
|
|||
other errors (such as permission errors) are propagated.
|
||||
|
||||
|
||||
.. method:: Path.is_junction()
|
||||
|
||||
Return ``True`` if the path points to a junction, and ``False`` for any other
|
||||
type of file. Currently only Windows supports junctions.
|
||||
|
||||
.. versionadded:: 3.12
|
||||
|
||||
|
||||
.. method:: Path.is_mount()
|
||||
|
||||
Return ``True`` if the path is a :dfn:`mount point`: a point in a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue