FindFileExtensions Data Member Function

Searches a root directory for files with the specified file extension. For example: Find all files "D:\\MyFolder" with the ".glsl" and ".png" extensions.

Prototype

int32 FindFileExtensions( string p_sDirectory, StrList files, StrList extensions, int32 recurse )

Parameters

Parameter Type Parameter Name Documentation
stringp_sDirectoryThe directory to search. For example: "D:\\MyFolder".
<StrList>filesA pointer to the destination <StrList> object that stores the file paths.
<StrList>extensionsA pointer a <StrList> object containig the file extensions to query. For example: this <StrList> might contain ".glsl", ".box", and ".png".
int32recurseIf true, the directory search is performed recursively.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Simdify Scripting Language code base.