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

José Valim <>
Wed Mar 7 09:38:59 CET 2012


Hello everyone, any feedback on the proposal below?

Thanks.


On Mon, Feb 20, 2012 at 5:18 PM, José Valim <> wrote:

> 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/20120307/60da0b31/attachment.html>


More information about the erlang-patches mailing list