mirror of https://github.com/python/cpython
13 lines
803 B
ReStructuredText
13 lines
803 B
ReStructuredText
|
:mod:`os.path` functions that return a boolean result like
|
||
|
:func:`~os.path.exists`, :func:`~os.path.lexists`, :func:`~os.path.isdir`,
|
||
|
:func:`~os.path.isfile`, :func:`~os.path.islink`, and :func:`~os.path.ismount`,
|
||
|
and :mod:`pathlib.Path` methods that return a boolean result like
|
||
|
:meth:`~pathlib.Path.exists()`, :meth:`~pathlib.Path.is_dir()`,
|
||
|
:meth:`~pathlib.Path.is_file()`, :meth:`~pathlib.Path.is_mount()`,
|
||
|
:meth:`~pathlib.Path.is_symlink()`, :meth:`~pathlib.Path.is_block_device()`,
|
||
|
:meth:`~pathlib.Path.is_char_device()`, :meth:`~pathlib.Path.is_fifo()`,
|
||
|
:meth:`~pathlib.Path.is_socket()` now return ``False`` instead of raising
|
||
|
:exc:`ValueError` or its subclasses :exc:`UnicodeEncodeError` and
|
||
|
:exc:`UnicodeDecodeError` for paths that contain characters or bytes
|
||
|
unrepresentable at the OS level.
|