JitterMan added the comment:

The same issues applies with '**', where it is harder to work around. The shell 
version of '**' prunes out hidden files and directories at all levels, whereas 
the pathlib.glob() includes all hidden directories.

Major surgery would be required to filter out hidden files and directories from 
the output of pathlib.glob(), which would be expensive and complicated. Perhaps 
an option is called for that would allow pathlib.glob() to prune its search to 
only non-hidden directories if requested. And if that seems like a good idea, 
perhaps there could also be options that specify that only files or only 
directories should be returned.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26096>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to