extractArchiveZip static method
Directory
extractArchiveZip({
- required File archivedFile,
- required Directory directoryOutput,
- required String? password,
- required bool verify,
- 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;
}