Skip to content

Instantly share code, notes, and snippets.

@nsaphra
Created October 14, 2014 21:37
Show Gist options
  • Save nsaphra/5b6a6576c38e785cb49c to your computer and use it in GitHub Desktop.
Save nsaphra/5b6a6576c38e785cb49c to your computer and use it in GitHub Desktop.
Filesystem find one-liner
find(path::String, exec, filterfcn) = [name => exec(name) for name in filter(filterfcn, readdir(path))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment