Skip to content

Instantly share code, notes, and snippets.

@smls
Last active August 15, 2016 15:02
sub find-files ($dir, Mu :$test) {
gather for dir $dir -> $path {
if $path.basename ~~ $test { take $path }
if $path.d { .take for find-files $path, :$test };
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment