Is there a way to simply unzip all contents of a zipfile to a directory?
No, there's no such way.
You'd have to聽write your own code to聽do all聽of the聽following:
/.*/ as聽regex to聽.file(regex) to聽get an聽array of聽ZIP聽entries..dir property:.dir is false, use .name property as聽a聽path (relative to聽your target directory) to聽create a聽target聽file and聽then use one of the ZipObject's getters to聽fetch that聽file's content and聽write聽it to聽the聽created file.dir is true, skip it. (The聽necessary directories should be created already if .name of a聽file contains subdirectories.)Shouldn't this be addressed by the lib?
Most helpful comment
Shouldn't this be addressed by the lib?