Windows to Linux Porting - timeCreated and timeLastAccessed

Kagamin spam at here.lot
Fri May 4 18:53:07 UTC 2018


If you just want to clean logs, then use modification time on all 
oses:

auto clogClean (string LogDir ) {
Array!(Tuple!(string, SysTime)) dFiles;
  dFiles.insert(dirEntries(LogDir, SpanMode.shallow).filter!(a => 
a.isFile).map!(a => tuple(a.name, a.timeLastModified)));
  return dFiles;
}


More information about the Digitalmars-d-learn mailing list