Proposal for static method Directory.CountObjects()

Oct 7, 2011 at 3:29 PM

There is already such method, it is called, Directory.GetProperties();

You can test it and give some feedback.

Oct 9, 2011 at 5:46 AM

Because there are many types of file system objects it would be simpler to use either GetProperties or GetFullFileSystemEntries with search options restricted to top level directory only.

As there are already so many enumerating methods that I can't even recall right now, introducing new one in two flavours (regular and transacted) is quite overhead.

I'm finally going to right some documentation with samples. What scenarios would you like to see there?