Last updated 1 year ago
Was this helpful?
The dir function takes the directory to traverse, and optionally a named parameter test, which is against the basename of each file (so for example we can use a regex):
dir
test
.say for dir ".", :test(/foo/);