-
-
Notifications
You must be signed in to change notification settings - Fork 324
Description
Is your feature request related to a problem? Please describe.
It doesn't seem like there's a way to unzip an in-memory archive created with Archive(data:) initializer.
Describe the solution you'd like
An extension function on FileManager that takes an instance of Archive as an argument and unzips the archive in a given directory.
Describe alternatives you've considered
I've tried writing an in-memory archive to the filesystem first and then using the existing unzipItem extension function on FileManager, but that has a performance hit due to the fact that this requires writing the archive itself to disk.
Additional context
Writing the archive to disk is not needed in my case, it's held entirely in memory as it was donwloaded from network and there's no need to write the archive itself to disk, the app needs to write unzipped archive content directly to disk. The in-memory zip data is immediately discarded.