extractFileToDisk function

Future<void> extractFileToDisk(
  1. String inputPath,
  2. String outputPath
)

Extracts the zip file at inputPath into the folder outputPath (created if needed). Entries are written in parallel; large entries are streamed. Every CRC is checked, and entries whose names would land outside outputPath ("zip slip") are refused.

Unlike package:archive, only zip files are supported.

Implementation

Future<void> extractFileToDisk(String inputPath, String outputPath) =>
    Isolate.run(() => files.extractZip(inputPath, outputPath));