std.fs.list_numbered

std.fs

list_numbered(path, pattern) -> names

List the entries a pattern numbers, in number order

The names under path that pattern captures a number from, sorted by that number, so event2 comes before event10 where the names alone would not. A path that does not read gives an empty table.