Hi,
With the attached source file on Windows, dmd 2.054, I'm not getting an exception when the path doesn't exist. If I uncomment the foreach line, the exception is thrown. Should I file this in bugzilla?

Thanks
import std.file;

void main(string[] args)
{
        auto path = args[1];

        if (!path.isDir())
        {
        }
        
        foreach (DirEntry f; dirEntries(path, SpanMode.depth))
        {
        }
}

Reply via email to