Xavier de Gaye added the comment:

glob('invalid_dir/**', recursive=True) triggers the assert that was added by my 
patch in _rlistdir().

This new patch fixes this: when there is no magic character in the dirname part 
of a split(), and dirname is not an existing directory, then there is nothing 
to yield and the processing of pathname must stop (and thus in this case, no 
call is made to glob2() when basename is '**').

----------
Added file: http://bugs.python.org/file40989/rglob_isdir_2.diff

_______________________________________
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

Reply via email to