From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 11 Sep 2019 17:28:16 +0000 (-0700) Subject: Doc: recursive glob ** follows symlinks to directories (GH-12918) X-Git-Tag: v3.7.5rc1~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b46586124b1022f31f7b6d582a54dff49675ab3;p=thirdparty%2FPython%2Fcpython.git Doc: recursive glob ** follows symlinks to directories (GH-12918) (cherry picked from commit e24594bfe75aff3e654665cb940ddc4d4acffd2f) Co-authored-by: Marc --- diff --git a/Doc/library/glob.rst b/Doc/library/glob.rst index 0db10b5efc10..9ab79d7a6bab 100644 --- a/Doc/library/glob.rst +++ b/Doc/library/glob.rst @@ -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