[Python-ideas] Adding '**' recursive search to glob.glob (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Mon Jan 14 18:06:34 CET 2013
- Previous message: [Python-ideas] Adding '**' recursive search to glob.glob
- Next message: [Python-ideas] Adding '**' recursive search to glob.glob
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le Mon, 14 Jan 2013 18:21:40 +0200, Serhiy Storchaka <storchaka at gmail.com> a écrit :
On 14.01.13 17:46, Vinay Sajip wrote: > Isn't the requirement to recurse implied by the presence of '**' in > the pattern? What's to be gained by specifying it using > allowrecursive as well?
I'll be glad to make it enabled by default, however I'm feeling this is too dangerous. glob('**') on FS root takes too long time. Perhaps that's why (and for backward compatibility) this option (called "starglob") is disabled by default in Bash.
But there's no reason to write glob('**') with the current API.
Regards
Antoine.
- Previous message: [Python-ideas] Adding '**' recursive search to glob.glob
- Next message: [Python-ideas] Adding '**' recursive search to glob.glob
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]