gzipFile function

Future<void> gzipFile(
  1. String input,
  2. String output, {
  3. int? level,
  4. bool parallel = true,
})

Compresses the file at input to the gzip file output. With parallel (the default), it uses every core; the output is one standard gzip stream.

Implementation

Future<void> gzipFile(String input, String output,
    {int? level, bool parallel = true}) {
  final l = level ?? -1;
  return Isolate.run(
      () => files.compressFile(StreamFormat.gzip, input, output, l, parallel));
}