On 9/12/22 19:48, Eryk Sun wrote:
On 9/12/22, Mats Wichmann <[email protected]> wrote:

If `include_hidden` is true, the patterns '*', '?', '**'  will
match hidden directories.

Shouldn't this explain what a "hidden directory" is? For example, a
Windows user may think this means a directory with
FILE_ATTRIBUTE_HIDDEN set, but that's not what's meant here. Also, I
think it should note that enabling include_hidden negates the earlier
claim that "files beginning with a dot (.) can only be matched by
patterns that also start with a dot". For example, glob.glob('*',
include_hidden=True) includes all of the conventionally hidden
directories and hidden files in the current directory.

sounds like a good point to me.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/5T3HINWHN6UIDDRUG72EMFNZJPO4NG4S/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to