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

Prototype

int32 FindFileExtension( string p_sDirectory, StrList files, string ext )

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.
stringextA string containing the extension to find. For example: ".glsl" or ".box" or ".png".

Examples

Copy Text To Clipboard

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