kineapps / flutter_archive

Flutter plugin for creating and extracting ZIP files.
https://pub.dev/packages/flutter_archive
BSD 3-Clause "New" or "Revised" License
57 stars 43 forks source link

How to Extract single file only? #72

Closed ashokavarthanan closed 1 year ago

ashokavarthanan commented 1 year ago

Hi, I am using flutter_archive. It works well Extract all files from zip file.

But I want to Extract only one file. i know that file name. Example : "folder/filename.db" from inside zip file.

Also tried.

onExtracting: (zipEntry, progress) { if (zipEntry.name == "folder/filename.db") { return ZipFileOperation.includeItem; } return ZipFileOperation.skipItem; },

any another way?

Thanks.