From d47993664e6e82e98190cd14030db75aff7e2437 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 11 Sep 2019 10:32:26 -0700 Subject: [PATCH] Doc: recursive glob ** follows symlinks to directories (GH-12918) (cherry picked from commit e24594bfe75aff3e654665cb940ddc4d4acffd2f) Co-authored-by: Marc --- Doc/library/glob.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/glob.rst b/Doc/library/glob.rst index 96584437ce..92a8c4d1eb 100644 --- a/Doc/library/glob.rst +++ b/Doc/library/glob.rst @@ -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 -- 2.50.1