[issue25596] regular files handled as directories in the glob module

Xavier de Gaye report at bugs.python.org
Mon Jan 4 06:20:36 EST 2016


Xavier de Gaye added the comment:

> and since _iterdir() results are always accumulated in a list

Right, I failed to note that point. And so, since the file descriptor opened by os.scandir() is closed within each call to recursive _rlistdir(), then my other comment about EMFILE does not stand as well.

----------

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


More information about the Python-bugs-list mailing list