os.matchfiles

Jason Perkins edited this page May 30, 2015 · 2 revisions

Perform a wildcard match to locate one or more files.

matches = os.matchfiles("pattern")

Parameters

pattern is the file system path to search. It may contain single (non-recursive) or double (recursive) asterisk wildcard patterns.

Return Value

A list of files which match the specified pattern. May be empty.

Availability

Premake 4.0 or later.

Examples

matches = os.matchfiles("src/*.c")   -- non-recursive match
matches = os.matchfiles("src/**.c")  -- recursive match

See Also

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.