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

Gustav Simonsson <>
Tue Mar 13 14:47:44 CET 2012


Hi José,

We have included this patch in the 'pu' branch.
Thank you for the contribution!

Regards,
Gustav Simonsson
Erlang/OTP team

On 2012-03-07 09:38, José Valim wrote:
> Hello everyone, any feedback on the proposal below?
>
> Thanks.
>
>
> On Mon, Feb 20, 2012 at 5:18 PM, José Valim < 
> <mailto:>> wrote:
>
>     So here is a patch that allows ** in filelib:wildcard() in order
>     to support recursion.
>
>     git fetch git://github.com/josevalim/otp.git
>     <http://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. :)
>
>
>
> _______________________________________________
> erlang-patches mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-patches

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20120313/e23605e1/attachment.html>


More information about the erlang-patches mailing list