extractArchiveZipAsync static method

Future<Directory> extractArchiveZipAsync({
  1. required File archivedFile,
  2. required Directory directoryOutput,
  3. required String? password,
  4. bool verify = true,
  5. required ArchiveGeneralLibOptions archiveGeneralLibOptions,
})

Implementation

static Future<Directory> extractArchiveZipAsync({
  required File archivedFile,
  required Directory directoryOutput,
  required String? password,
  bool verify = true,
  required ArchiveGeneralLibOptions archiveGeneralLibOptions,
}) async {
  final ArchiveGeneralLib archiveGeneralLib = ArchiveGeneralLib();
  await extractArchiveToDiskAsync(
    archiveGeneralLib.zipDecoder(
      path: archivedFile.path,
      password: password,
      verify: verify,
    ),
    directoryOutput.uri.toFilePath(),
    asyncWrite: true,
  );
  await archiveGeneralLib.closeAsync();
  return directoryOutput;
}