mono/mono — pull request #460 by pcc (2012-09-14 02:08:50+00:00)
Title: Rewrite implementation of Directory.EnumerateKind

This rewrite fixes three bugs:

1) Fixes the case where AllDirectories is specified and searchPattern
is anything other than '*'. Now, every directory is searched
recursively, not just those which match the pattern.

2) Fully solves the issue that commit e09e64b tried to fix. Now
the check for hidden files occurs for every file, rather than
only the first.

3) Error handling is now performed at calls to both FindFirst and
FindNext, not just FindFirst.