This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/os.matchfiles.md
2021-03-12 22:10:24 +01:00

34 lines
592 B
Markdown

Perform a wildcard match to locate one or more files.
```lua
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 ###
```lua
matches = os.matchfiles("src/*.c") -- non-recursive match
matches = os.matchfiles("src/**.c") -- recursive match
```
### See Also ###
* [os.matchdirs](os.matchdirs.md)