diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index d8fa4a27a28a0b..46a4d10b11d602 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -916,6 +916,10 @@ call fails (for example because the path doesn't exist). PosixPath('setup.py'), PosixPath('test_pathlib.py')] + This method calls :meth:`Path.is_dir` on the top-level directory and + propagates any :exc:`OSError` exception that is raised. Subsequent + :exc:`OSError` exceptions from scanning directories are suppressed. + By default, or when the *case_sensitive* keyword-only argument is set to ``None``, this method matches paths using platform-specific casing rules: typically, case-sensitive on POSIX, and case-insensitive on Windows.