Searches a root directory for files with the specified file extension. For example: Find all files "D:\\MyFolder" with the ".glsl" extension.
int32 FindFileExtension( string p_sDirectory, StrList files, string ext, int32 recurse )
| Parameter Type | Parameter Name | Documentation |
|---|---|---|
| string | p_sDirectory | The directory to search. For example: "D:\\MyFolder". |
| <StrList> | files | A pointer to the destination <StrList> object that stores the file paths. |
| string | ext | A string containing the extension to find. For example: ".glsl" or ".box" or ".png". |
| int32 | recurse | If true, the directory search is performed recursively. |
None published. Please look for an example in the Simdify Scripting Language code base.