[erlang-patches] Support ** for recursion in filelib:wildcard

José Valim jose.valim@REDACTED
Mon Feb 20 17:18:15 CET 2012


So here is a patch that allows ** in filelib:wildcard() in order to support
recursion.

git fetch git://github.com/josevalim/otp.git double_star

https://github.com/josevalim/otp/compare/double_star
https://github.com/josevalim/otp/compare/double_star.patch

** now works similarly to bash, ruby, racf, etc. For example, running
filelib:wildcard("**/*.erl", Cwd) will find all files ending with .erl in
the Cwd recursively.

PS: I had some minor bumps in the road but in general I've found the
process of submitting patches to Erlang very well documented. So thanks to
those responsible for making this easy. :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20120220/66832476/attachment.htm>


More information about the erlang-patches mailing list