]> granicus.if.org Git - python/commitdiff
Doc: recursive glob ** follows symlinks to directories (GH-12918)
authorMarc <Marc.Herbert+github@gmail.com>
Wed, 11 Sep 2019 17:17:05 +0000 (10:17 -0700)
committerJulien Palard <julien@palard.fr>
Wed, 11 Sep 2019 17:17:05 +0000 (19:17 +0200)
Doc/library/glob.rst

index 96584437cef16beb40463dee40234e5bfc6c88dc..92a8c4d1eb871cfe8120dca583a63756cf8d07b2 100644 (file)
@@ -49,8 +49,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.
 
    .. audit-event:: glob.glob pathname,recursive glob.glob