-
Notifications
You must be signed in to change notification settings - Fork 20
os.matchfiles
mba105 edited this page Sep 24, 2014
·
2 revisions
Home > [Scripting Reference](Scripting Reference) > os.matchfiles
The os.matchdirs function performs a wildcard match to locate one or more directories.
#!lua
matches = os.matchfiles("pattern")
pattern is the file system path to search. It may contain single (non-recursive) or double (recursive) asterisk wildcard patterns.
A list of files which match the specified pattern. May be empty.
#!lua
matches = os.matchfiles("src/*.c") -- non-recursive match
matches = os.matchfiles("src/**.c") -- recursive match