aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src
diff options
context:
space:
mode:
authorJosé Valim <[email protected]>2012-02-20 14:45:43 +0100
committerBjörn Gustavsson <[email protected]>2012-09-17 12:00:17 +0200
commit67b0f0c042fe833a666fa2f6d9b882a1c66998db (patch)
treed2b33c11487d75139eb651debf9121251dc180b5 /lib/stdlib/doc/src
parentb58ce62a0cf296ca8cd8cd77b053bc70ecf28758 (diff)
downloadotp-67b0f0c042fe833a666fa2f6d9b882a1c66998db.tar.gz
otp-67b0f0c042fe833a666fa2f6d9b882a1c66998db.tar.bz2
otp-67b0f0c042fe833a666fa2f6d9b882a1c66998db.zip
Allow ** in filelib:wildcard
Two adjacent * used as a single pattern will match all files and zero or more directories and subdirectories.
Diffstat (limited to 'lib/stdlib/doc/src')
-rw-r--r--lib/stdlib/doc/src/filelib.xml9
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>