how to uncompress a folder with with extension gzip
<p>I'm having a problem with a folder with an extension .gz in the client side which contains xml files in it. I have to download the folder into local directory then i need to extract the folder. </p>

<p>I was able to download the .gz folder into local, but I'm unable to extract the folder.</p>

<p>I tried using the </p>

<pre><code>ZipArchive::extractto($targetfolder);
</code></pre>

<p>But it is not accepting the .gz. </p>

<p>When i search through stack overflow i found only answers for .gz files not for .gz folders.</p>
