alphaleonis / AlphaFS

AlphaFS is a .NET library providing more complete Win32 file system functionality to the .NET platform than the standard System.IO classes.

Home Page:http://alphafs.alphaleonis.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Root directory enumeration is broken on develop

rstarkov opened this issue · comments

Try this: new DirectoryInfo(@"C:\").GetDirectories().Count three times in a row. The first two times it's correct; the third time it's one fewer than it should be.

The reason for this appears to be the addition of an ERROR_NO_MORE_FILES check on this branch. Sometimes FindFirstFileEx sets this when enumerating the root drive. Hopefully not just on my system.