Pass around a stat struct, not ints

This allows us to see which files are actually downloading and their
sizes