[New-bugs-announce] [issue37578] Change Glob: Allow Recursion for Hidden Files

Kalev Maricq report at bugs.python.org
Fri Jul 12 22:23:53 EDT 2019


New submission from Kalev Maricq <kalevtheolive at hotmail.com>:

First, sorry if this isn't in the correct place or correctly labeled. I'm new to this platform.  Feel free to edit this (if that's even possible on this platform). 

In the glob.py module, _ishidden(pattern) is used to determine whether to show hidden files and folders by checking if pattern[0]=='.'.  It also uses _isrecursive(pattern) to determine whether to perform a recursive search by checking whether the pattern=='**'.  As a result, one cannot perform a recursive search which shows hidden folders and files, since '**'[0]!='.'.  

Suggestion: Alter _isrecursive to return '**' in pattern to allow for this.

----------
messages: 347767
nosy: k64
priority: normal
severity: normal
status: open
title: Change Glob: Allow Recursion for Hidden Files
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37578>
_______________________________________


More information about the New-bugs-announce mailing list