function recordToFile(centralRecord, localRecord) {
  const mode = modeForExternalAttributes(centralRecord.externalFileAttributes);
  return {
    name: centralRecord.name,
    mode,
    date: centralRecord.date,
    crc32: centralRecord.crc32,
    compressionMethod: centralRecord.compressionMethod,
    compressedLength: centralRecord.compressedLength,
    uncompressedLength: centralRecord.uncompressedLength,
    content: localRecord.content,
    comment: centralRecord.comment,
  };
}
@param {CentralFileRecord} centralRecord
@param {LocalFileRecord} localRecord
@returns {CompressedFile}