]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: recursive glob ** follows symlinks to directories (GH-12918)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 Sep 2019 17:28:16 +0000 (10:28 -0700)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2019 17:28:16 +0000 (10:28 -0700)
(cherry picked from commit e24594bfe75aff3e654665cb940ddc4d4acffd2f)

Co-authored-by: Marc <Marc.Herbert+github@gmail.com>
Doc/library/glob.rst

index 0db10b5efc10cb9d8b0253c84bb12999cc7900e1..9ab79d7a6bab44e2dd95a48be4b4393561a84601 100644 (file)
@@ -48,8 +48,9 @@ For example, ``'[?]'`` matches the character ``'?'``.
       single: **; in glob-style wildcards
 
    If *recursive* is true, the pattern "``**``" will match any files and zero or
-   more directories and subdirectories.  If the pattern is followed by an
-   ``os.sep``, only directories and subdirectories match.
+   more directories, subdirectories and symbolic links to directories. If the
+   pattern is followed by an :data:`os.sep` or :data:`os.altsep` then files will not
+   match.
 
    .. note::
       Using the "``**``" pattern in large directory trees may consume