mirror of https://github.com/python/cpython
6 lines
322 B
ReStructuredText
6 lines
322 B
ReStructuredText
Suppress all :exc:`OSError` exceptions from :meth:`pathlib.Path.exists` and
|
|
``is_*()`` methods, rather than a selection of more common errors. The new
|
|
behaviour is consistent with :func:`os.path.exists`, :func:`os.path.isdir`,
|
|
etc. Use :meth:`pathlib.Path.stat` to retrieve the file status without
|
|
suppressing exceptions.
|