[issue25584] a recursive glob pattern fails to list files in the current directory

Xavier de Gaye report at bugs.python.org
Mon Nov 9 08:03:51 EST 2015


Xavier de Gaye added the comment:

FWIW the patch looks good to me.

I find the code in glob.py difficult to read as it happily joins regular filenames together with os.path.join() or attempts to list the files contained into a regular file (sic).  The attached diff makes the code more correct and easier to understand. It is meant to be applied on top of Serhiy's patch.

----------
Added file: http://bugs.python.org/file40988/rglob_isdir.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25584>
_______________________________________


More information about the Python-bugs-list mailing list