Skip to content

Instantly share code, notes, and snippets.

@JakubOboza
Created July 27, 2011 23:02
Show Gist options
  • Save JakubOboza/1110553 to your computer and use it in GitHub Desktop.
Save JakubOboza/1110553 to your computer and use it in GitHub Desktop.
mapF(Pattern, Root) ->
ergrep ! {spawn, self()},
Items = filelib:wildcard(Root),
lists:map(fun(I) -> process_item(filelib:is_dir(I), I, Pattern) end, Items),
ergrep ! {die, self()}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment