Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Doc/library/glob.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ The :mod:`!glob` module defines the following functions:
This function may return duplicate path names if *pathname*
contains multiple "``**``" patterns and *recursive* is true.

.. note::
Any :exc:`OSError` exceptions raised from scanning the filesystem are
suppressed. This includes :exc:`PermissionError` when accessing
directories without read permission.

.. versionchanged:: 3.5
Support for recursive globs using "``**``".

Expand All @@ -106,6 +111,11 @@ The :mod:`!glob` module defines the following functions:
This function may return duplicate path names if *pathname*
contains multiple "``**``" patterns and *recursive* is true.

.. note::
Any :exc:`OSError` exceptions raised from scanning the filesystem are
suppressed. This includes :exc:`PermissionError` when accessing
directories without read permission.

.. versionchanged:: 3.5
Support for recursive globs using "``**``".

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Document that :func:`glob.glob` and :func:`glob.iglob` silently suppress
:exc:`OSError` exceptions raised from scanning the filesystem.
Loading