Move isDir into stats object and add a date property.