Collect a "file not found" error.
auto fn = deleteme; if (fn.exists) fn.removeRecurse(); foreach (dg; [ { openFile(fn, "rb"); }, { mkdir(fn.buildPath("b")); }, { hardLink(fn, fn ~ "2"); }, ]) assert(!dg.collectNotFoundError);
See Implementation
Collect a "file not found" error.