Initial community commit

This commit is contained in:
Jef
2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit 20d28e80a5
16810 changed files with 4640254 additions and 2 deletions

View File

@@ -0,0 +1,33 @@
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)