[issue33392] pathlib .glob('*/') returns files as well as directories

robbuckley report at bugs.python.org
Tue May 1 14:51:30 EDT 2018


robbuckley <rob at buckleynet.uk> added the comment:

I checked this on Mac and Windows, pathlib and the old glob std lib behave
the same on both in this respect

On Tue, 1 May 2018, 18:35 Emily Morehouse, <report at bugs.python.org> wrote:

>
> Emily Morehouse <emily at cuttlesoft.com> added the comment:
>
> Good find -- I agree that when using Path.cwd().glob('*/'), it should only
> return directories. This follows the original glob library's functionality
> as well as the Unix expectation (I believe Windows as well, but I'll double
> check).
>
> I'll work on a fix!
>
> ----------
> assignee:  -> emilyemorehouse
> nosy: +emilyemorehouse
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue33392>
> _______________________________________
>

----------

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


More information about the Python-bugs-list mailing list