[Issue 12391] DirEntries throws in foreach

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jan 10 20:08:15 PST 2016


https://issues.dlang.org/show_bug.cgi?id=12391

--- Comment #3 from Timothee Cour <timothee.cour2 at gmail.com> ---
ping on this.

I made local modifications to my git repo as this error was a blocker:

auto h = directory.length ? opendir(directory.tempCString()) : opendir(".");


                if(!h) {
                    auto s = strerror(errno).to!string;
                    import std.stdio;
                    stderr.writeln("ERROR: ", __FILE__,":",__LINE__,"
",directory , " ",s);
                    return false;
                }

--


More information about the Digitalmars-d-bugs mailing list