Skip to content

Commit 9b46586

Browse files
Doc: recursive glob ** follows symlinks to directories (GH-12918)
(cherry picked from commit e24594b) Co-authored-by: Marc <Marc.Herbert+github@gmail.com>
1 parent c112faf commit 9b46586

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/glob.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ For example, ``'[?]'`` matches the character ``'?'``.
4848
single: **; in glob-style wildcards
4949
5050
If *recursive* is true, the pattern "``**``" will match any files and zero or
51-
more directories and subdirectories. If the pattern is followed by an
52-
``os.sep``, only directories and subdirectories match.
51+
more directories, subdirectories and symbolic links to directories. If the
52+
pattern is followed by an :data:`os.sep` or :data:`os.altsep` then files will not
53+
match.
5354

5455
.. note::
5556
Using the "``**``" pattern in large directory trees may consume

0 commit comments

Comments
 (0)