extractArchiveZipAsync static method
Future<Directory>
extractArchiveZipAsync({
- required File archivedFile,
- required Directory directoryOutput,
- required String? password,
- bool verify = true,
- required ArchiveGeneralLibOptions archiveGeneralLibOptions,
extract archive zip async
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;
}