dcrsmith
10/12/2022, 6:55 PMcompress.gunzip(options)
I've been able to compress files into a zip and store it in the file cabinet. However, I'm stuck trying to unzip the files to the file cabinet. Does anyone have a sample of how to read and resave the files inside of the zip? I'm just not making any headway on this and could use some help/examples.
let gunzippedFile = compress.gunzip({file: _f}); //'./Files.zip'
log.debug('gunzippedFile',gunzippedFile);
let zipContent = gunzippedFile.getContents();
log.debug('content',zipContent);
// TODO: Save zip contents to file cabinet as separate files ???
Jan Petri
10/12/2022, 8:27 PMdcrsmith
10/12/2022, 8:36 PMcompress.createArchiver()
but I can't seem to undo that same archive file back into the original set of files I added to it.Jan Petri
10/12/2022, 8:38 PM