diff options
author | Henrik Nord <[email protected]> | 2012-09-20 12:42:01 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2012-09-20 12:42:14 +0200 |
commit | 95d4c612f2308d86e926c97b08ea2751d626a6ae (patch) | |
tree | 8636ee5600729c8d02d38338e44e7af81be5d30e /lib/stdlib/doc/src | |
parent | 9ff206c9df34b8d9cf99fa19fb443e6c6762fefc (diff) | |
parent | 67b0f0c042fe833a666fa2f6d9b882a1c66998db (diff) | |
download | otp-95d4c612f2308d86e926c97b08ea2751d626a6ae.tar.gz otp-95d4c612f2308d86e926c97b08ea2751d626a6ae.tar.bz2 otp-95d4c612f2308d86e926c97b08ea2751d626a6ae.zip |
Merge branch 'jv/filelib_recursion_wildcard'
* jv/filelib_recursion_wildcard:
Allow ** in filelib:wildcard
OTP-10431
Diffstat (limited to 'lib/stdlib/doc/src')
-rw-r--r-- | lib/stdlib/doc/src/filelib.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/stdlib/doc/src/filelib.xml b/lib/stdlib/doc/src/filelib.xml index f3079c7337..cec20aee8e 100644 --- a/lib/stdlib/doc/src/filelib.xml +++ b/lib/stdlib/doc/src/filelib.xml @@ -150,6 +150,11 @@ <p>Matches any number of characters up to the end of the filename, the next dot, or the next slash.</p> </item> + <tag>**</tag> + <item> + <p>Two adjacent <c>*</c>'s used as a single pattern will + match all files and zero or more directories and subdirectories.</p> + </item> <tag>[Character1,Character2,...]</tag> <item> <p>Matches any of the characters listed. Two characters @@ -192,6 +197,10 @@ <c>src</c> or <c>include</c> directories, use:</p> <code type="none"> filelib:wildcard("lib/*/{src,include}/*.{erl,hrl}") </code> + <p>To find all <c>.erl</c> or <c>.hrl</c> files in any + subdirectory, use:</p> + <code type="none"> + filelib:wildcard("lib/**/*.{erl,hrl}") </code> </desc> </func> <func> |