JitterMan added the comment:

Globbing has been with us for almost 50 years, and in all that time it has 
never matched the hidden files/directories. There may be isolated cases where 
matching the hidden items is preferred, but generally that is not the case. 
Indeed, the primary characteristic of being hidden is that it should not be 
included in globbing. One marks a file or directory to be hidden specifically 
to mean 'do not include this one when selecting groups of files or directories'.

Once the glob string has been expanded, it is possible to filter out the hidden 
files and directories, but it very difficult to do so if there are several 
levels of directories because one has to look for hidden items at all levels of 
the path.

Globbing has been available and largely unchanged for almost 50 years. I am not 
the one that is asking for it to be changed. I am asking for it to be returned 
to what it has always been. Being consistent with bash and other shells is a 
very important feature. It allows us to offer pathlib globbing to the end user 
and have it work the way they expect.

----------

_______________________________________
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