winamp/Src/external_dependencies/openmpt-trunk/include/premake/website/docs/os.matchdirs.md

36 lines
675 B
Markdown
Raw Normal View History

2024-09-24 12:54:57 +00:00
Perform a wildcard match to locate one or more directories.
```lua
matches = os.matchdirs("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 directories which match the specified pattern. May be empty.
### Availability ###
Premake 4.0 or later.
### Examples ###
```lua
matches = os.matchdirs("src/*") -- non-recursive match
matches = os.matchdirs("src/**") -- recursive match
matches = os.matchdirs("src/test*") -- may also match partial names
```
### See Also ###
* [os.matchfiles](os.matchfiles.md)