Extensions Reference
Extensions Reference > fsFilesystem
fsGetEnumFileCount
int fsGetEnumFileCount();
Returns the number of files after enumeration
The fsGetEnumFileCount function returns the number of files in an enumerated folder. Before calling this function you must call fsFilesystem::fsEnumFolder, which performs the actual setup and enumeration of the specified folder.
Parameters
None
Return Value
The number of files in the previously enumerated folder.
Example Code
// iTotal contains the number of files and subfolders in the root of C:
int iTotal = fsEnumFolder("C:\\");
// iTotalFiles contains the number of subfolders
int iTotalFiles = fsGetEnumFileCount();