alphaleonis / AlphaFS

AlphaFS is a .NET library providing more complete Win32 file system functionality to the .NET platform than the standard System.IO classes.
http://alphafs.alphaleonis.com/
MIT License
558 stars 99 forks source link

Root directory enumeration is broken on develop #518

Open rstarkov opened 5 years ago

rstarkov commented 5 years ago

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.