Message258221
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. |
|
Date |
User |
Action |
Args |
2016-01-14 21:16:05 | jitterman | set | recipients:
+ jitterman, gvanrossum, pitrou |
2016-01-14 21:16:05 | jitterman | set | messageid: <1452806165.47.0.10397845973.issue26096@psf.upfronthosting.co.za> |
2016-01-14 21:16:05 | jitterman | link | issue26096 messages |
2016-01-14 21:16:05 | jitterman | create | |
|