FindFileExtensions Data Member Function

Recursively 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 )

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".

Examples

Copy Text To Clipboard

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