This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jitterman
Recipients gvanrossum, jitterman, pitrou
Date 2016-02-04.07:34:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454571294.2.0.134787800981.issue26096@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-02-04 07:34:54jittermansetrecipients: + jitterman, gvanrossum, pitrou
2016-02-04 07:34:54jittermansetmessageid: <1454571294.2.0.134787800981.issue26096@psf.upfronthosting.co.za>
2016-02-04 07:34:54jittermanlinkissue26096 messages
2016-02-04 07:34:54jittermancreate