I've got an app which can scan whole drive (https://bitbucket.org/infognition/undup) and there I used this way of calling dirEntries and catching FileException was enough to work fine in Windows 8.1. However I haven't tried yet to compile with DMD 2.064, some earlier version was used. Which compiler and what mode (release/debug) did you use?
I have DMD32 v2.062 debug. I also tried:
foreach(string s; dirEntries(directory, SpanMode.shallow, false)){...
and am getting the same crashing on certain folders.
