On Mon, May 26, 2025 at 6:50 AM Richard Hainsworth <rnhainswo...@gmail.com> wrote:
> My understanding is that there is a default test so that '.' and '..' > are not returned. So if :test is not specified thats the behaviour you get. > The page I linked to earlier doesn't read that way to me at all: Returns a lazy list of IO::Path objects corresponding to the entries in a directory, optionally filtered by smartmatching their names *as strings* per the :test parameter. [...] Objects corresponding to special directory entries . and .. are not included. It certainly seems odd that adding a filter can result in more elements being returned than without one. Anyway, I'll file a bug report shortly, to at least fix the documentation. However, I reported a similar mismatch <https://github.com/rakudo/rakudo/issues/5303> a few years ago and encountered a lot of resistance, ending with nothing being done, so I'm not holding my breath.