Skip to content

Commit 1fa73e6

Browse files
committed
De-duplicate docs
1 parent 02cfee1 commit 1fa73e6

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

Doc/library/pathlib.rst

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,38 +1769,12 @@ Path information
17691769
.. versionadded:: next
17701770

17711771
.. method:: exists(*, follow_symlinks=True)
1772-
1773-
Return ``True`` if the path is an existing file or directory, or any
1774-
other kind of file; return ``False`` if the path doesn't exist.
1775-
1776-
If *follow_symlinks* is ``False``, return ``True`` for symlinks without
1777-
checking if their targets exist.
1778-
17791772
.. method:: is_dir(*, follow_symlinks=True)
1780-
1781-
Return ``True`` if the path is a directory, or a symbolic link pointing
1782-
to a directory; return ``False`` if the path is (or points to) any other
1783-
kind of file, or if it doesn't exist.
1784-
1785-
If *follow_symlinks* is ``False``, return ``True`` only if the path
1786-
is a directory (without following symlinks); return ``False`` if the
1787-
path is any other kind of file, or if it doesn't exist.
1788-
17891773
.. method:: is_file(*, follow_symlinks=True)
1790-
1791-
Return ``True`` if the path is a file, or a symbolic link pointing to
1792-
a file; return ``False`` if the path is (or points to) a directory or
1793-
other non-file, or if it doesn't exist.
1794-
1795-
If *follow_symlinks* is ``False``, return ``True`` only if the path
1796-
is a file (without following symlinks); return ``False`` if the path
1797-
is a directory or other non-file, or if it doesn't exist.
1798-
17991774
.. method:: is_symlink()
18001775

1801-
Return ``True`` if the path is a symbolic link (even if broken); return
1802-
``False`` if the path is a directory or any kind of file, or if it
1803-
doesn't exist.
1776+
Return cached information about the path, as in
1777+
:class:`pathlib.types.PathInfo`.
18041778

18051779
.. method:: stat(*, follow_symlinks=True)
18061780

0 commit comments

Comments
 (0)