API Reference GuideInterfacesIShellItemsGetFoldersCountOn this pageGetFoldersCountDescriptionGets the number of folders.Syntax// shellItems points to instance of IShellItemsconst result = await shellItems.GetFoldersCount();Return typeTypeDescriptionPromise < number >Number of folders.