extractArchiveToDisk function

Future<void> extractArchiveToDisk(
  1. Archive archive,
  2. String outputPath, {
  3. int? bufferSize,
})

Implementation

Future<void> extractArchiveToDisk(
  Archive archive,
  String outputPath, {
  int? bufferSize,
}) async {
  _prepareOutDir(outputPath);
  for (final file in archive.files) {
    final filePath = _prepareArchiveFilePath(file, outputPath);
    if (filePath != null) {
      await _extractArchiveEntryToDisk(file, filePath);
    }
  }
}