-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
Description
Bug report
Minor issue in some still-private code.
In the pathlib ABCs, ReadablePath.glob('')
should work a bit like JoinablePath.joinpath('')
, i.e. it should yield the path with a trailing slash if it's an existing directory. This isn't presently the case, because the globbing implementation tries to defer adding trailing slashes, for basically no good reason.
Most easily reproduced by running DummyReadablePathTest.test_glob_empty_pattern()
, which currently asserts the wrong result (!)