Convert File.Stat to a struct