Flatten the files map into an array so we can iterate it