module reggae.file; import std.file: timeLastModified; @safe: bool newerThan(in string a, in string b) nothrow { try { return a.timeLastModified > b.timeLastModified; } catch(Exception) { //file not there, so newer return true; } }