Extensions Reference

Extensions Reference > fsFilesystem


fsGetEnumFolderCount

int fsGetEnumFolderCount();

 

Returns the number of subfolders after enumeration

The fsGetEnumFolderCount function returns the number of subfolders 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 subfolders in the previously enumerated folder.

 

Example Code

// iTotal contains the number of files and subfolders in the root of C:
int iTotal = fsEnumFolder("C:\\");

// iTotalDirs contains the number of subfolders
int iTotalDirs = fsGetEnumFolderCount();