Static function
Slow
File.GetFiles
Gets a list of all files in a directory, optionally with filters. Note that the results may differ between Linux and Windows due to the way the file system works
Syntax
File.GetFiles(path_filter = "", extension_filter = "", max_depth = -1)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
path_filter
optional
|
string|table | "" |
Path filter |
extension_filter
optional
|
string | "" |
E.g.: <code>.lua</code> |
max_depth
optional
|
integer | -1 |
The maximum depth to go further in the folders while searching. Pass -1 for maximum depth |
Returns
- string[] List of files