Plural helper: returns "file" or "files" etc.
String plural(int count, String singular) { return count == 1 ? singular : '${singular}s'; }