Closed byt3bl33d3r closed 3 years ago
From #5, this allows you to extract zip files from an in-memory stream.
I also exposed the clear() method so that we can free up memory after it's extracted.
clear()
Example:
import os import zippy/ziparchives import streams let ZIPFILE = slurp("archive.zip") var archive = ZipArchive() let zipStream = newStringStream(ZIPFILE) archive.open(zipStream) archive.extractAll(getCurrentDir() / "extractfolder") archive.clear()
This looks great! Thanks for the PR. It is late here tonight yet but the changes look good so I plan to merge tomorrow.
From #5, this allows you to extract zip files from an in-memory stream.
I also exposed the
clear()
method so that we can free up memory after it's extracted.Example: