title: Node js. Writing directory to the archive, without path to this directory
body: <p>Got some task, it is not hard, but i have some trouble.
  Maybe someone already has similar problem.</p>
  
  <p>My task is writing to zip archive some folder, with files and other folders in it with using NodeJS</p>
  
  <p>I try to use  AdmZip pakage</p>
  
  <p>folder project structure:
  <a href="https://i.stack.imgur.com/eza9O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eza9O.png" alt="enter image description here"></a></p>
  
  <pre><code>var AdmZip = require('adm-zip');
  
  let Archive = new AdmZip();
  Archive.addLocalFolder('Archive/filesFolder', '');
  Archive.writeZip('Archive/newArchive.zip);
  </code></pre>
  
  <p>I must get archive with 'filesFolder',  instead i get archive with 'Archive' folder and in it i have 'filesFolder'.</p>
  
  <p>If anybody know, how to record only target folder, and not the sequence of a way  folders?</p>