Archived

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

Getting the number of files in Directory.GetFileSystemEntries

This topic is 5091 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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