This topic is now archived and is closed to further replies.

Roof Top Pew Wee

Getting the number of files in Directory.GetFileSystemEntries

Recommended Posts

The Directory.GetFileSystemEntries() function in C# returns a string[] filled first with the directories then the files. However, is there a way to know how many directories there are before the files begin? I have looked through the SDK and I can''t find a function like GetNumberOfFiles or GetNumberOfDirectories or anything like that. I am creating a file window and want to know if the highlighted object is a file or directory. --Vic--

Share this post

Link to post
Share on other sites