extractArchiveZip static method

Directory extractArchiveZip({
  1. required File archivedFile,
  2. required Directory directoryOutput,
  3. required String? password,
  4. required bool verify,
  5. required ArchiveGeneralLibOptions archiveGeneralLibOptions,
})

extract archive zip

Implementation

static Directory extractArchiveZip({
  required File archivedFile,
  required Directory directoryOutput,
  required String? password,
  required bool verify,
  required ArchiveGeneralLibOptions archiveGeneralLibOptions,
}) {
  final ArchiveGeneralLib archiveGeneralLib = ArchiveGeneralLib();
  extractArchiveToDiskSync(
    archiveGeneralLib.zipDecoder(
      path: archivedFile.path,
      password: password,
      verify: verify,
    ),
    directoryOutput.uri.toFilePath(),
  );
  archiveGeneralLib.close();

  return directoryOutput;
}