Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Root directory enumeration is broken on develop #518

Open
rstarkov opened this issue Jun 14, 2019 · 0 comments
Open

Root directory enumeration is broken on develop #518

rstarkov opened this issue Jun 14, 2019 · 0 comments

Comments

@rstarkov
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant