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-01-14.21:16:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452806165.47.0.10397845973.issue26096@psf.upfronthosting.co.za>
In-reply-to
Content
The same issues applies with '**', where it is harder to work around. The shell version of '**' prunes out hidden files and directories at all levels, whereas the pathlib.glob() includes all hidden directories.

Major surgery would be required to filter out hidden files and directories from the output of pathlib.glob(), which would be expensive and complicated. Perhaps an option is called for that would allow pathlib.glob() to prune its search to only non-hidden directories if requested. And if that seems like a good idea, perhaps there could also be options that specify that only files or only directories should be returned.
History
Date User Action Args
2016-01-14 21:16:05jittermansetrecipients: + jitterman, gvanrossum, pitrou
2016-01-14 21:16:05jittermansetmessageid: <1452806165.47.0.10397845973.issue26096@psf.upfronthosting.co.za>
2016-01-14 21:16:05jittermanlinkissue26096 messages
2016-01-14 21:16:05jittermancreate