title: Node.js - Zip/Unzip a folder
body: <p>I'm diving into Zlib of node.js. I was able to compress and uncompress files using the provided examples (<a href="http://nodejs.org/api/zlib.html#zlib_examples">http://nodejs.org/api/zlib.html#zlib_examples</a>) but I didn't be able to find more about doing the same for folders?</p>
  
  <p>One possibility (but that I consider as tinkering) is to use <code>node-zip</code> module and adding all the files of the folder one by one. But I'll face a problem when uncompressing (I will lose the folders in this case).</p>
  
  <p>Any idea how to compress (and then uncompress) a whole folder (respecting the sub-solders hierarchy) using Node.js?</p>
  
  <p>Thanks.</p>