From 6092ede8d86746038df4a367191d232003652c55 Mon Sep 17 00:00:00 2001 From: Sascha Spreitzer Date: Sat, 4 Feb 2017 13:30:59 +0100 Subject: Add glob function --- README.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index a4c30b5..457ab6a 100644 --- a/README.markdown +++ b/README.markdown @@ -635,6 +635,17 @@ This is useful if the namespace itself is stored in a string: *Type*: rvalue. +#### `glob` + +Dir#glob wrapper that accepts a string or an array of strings of path patterns. +Returns an array of strings of matched paths. + + ~~~ + $confs = glob(['/etc/**/*.conf', '/opt/**/*.conf']) + ~~~ + +*Type*: rvalue. + #### `grep` Searches through an array and returns any elements that match the provided regular expression. For example, `grep(['aaa','bbb','ccc','aaaddd'], 'aaa')` returns ['aaa','aaaddd']. *Type*: rvalue. -- cgit v1.2.3