Serhiy Storchaka added the comment: Likely it was implementation artifact. Current implementation is simpler butter fitted existing glob design. The problem was that '**/a' should list 'a' and 'd/a', but '**/' should list only 'd/', and not ''.
Here is a patch that makes '**' to match also zero directories. Old tests were passed, new tests are added to cover this case. ---------- keywords: +patch stage: -> patch review versions: +Python 3.5 Added file: http://bugs.python.org/file40986/rglob_zero_dirs.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25584> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com