archiveExtension function

String archiveExtension(
  1. ArchiveFormat format
)

The file extension (without a leading dot) for format.

Implementation

String archiveExtension(ArchiveFormat format) => switch (format) {
  ArchiveFormat.zip => 'zip',
  ArchiveFormat.gz => 'gz',
  ArchiveFormat.tarGz => 'tar.gz',
};