isDir won't throw FileException with dirEntries
Nick Treleaven
nospam at example.com
Wed Aug 31 06:17:52 PDT 2011
On 30/08/2011 19:25, Andrej Mitrovic wrote:
> This is probably relevant to:
> http://d.puremagic.com/issues/show_bug.cgi?id=6329
> http://d.puremagic.com/issues/show_bug.cgi?id=6308
>
> But that is all still broken from what I can tell. It used to work
> fine in 2.053.
Looks like it is related. Another duplicate of bug 6308 looks like my
example but reduced more:
http://d.puremagic.com/issues/show_bug.cgi?id=6363
That one is now marked resolved, so hopefully my problem is fixed. It
seems any exception thrown just before using dirEntries was not firing
with dmd 2.054 32bit on Windows (XP). E.g.
void main(string[] args)
{
auto path = args[1]; // RangeError with no user args
//dirEntries("", SpanMode.depth); // hides exception
}
Thanks
More information about the Digitalmars-d-learn
mailing list