JavaScript
JavaScript
UnGzip .tgz to get a .tar
See more Tar Archive Examples
A .tgz is simply a TAR archive compressed using GZip. It is also commonly referred to as a .tar.gz. Chilkat GZip can be used to ungzip to get an uncompressed .tar.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat
v11.4.0 or greater.
var success = false;
var gzip = new CkGzip();
success = gzip.UncompressFile("qa_data/tar/test.tgz","qa_output/test.tar");
if (success !== true) {
console.log(gzip.LastErrorText);
}
else {
console.log("success.");
}