title: how to get only folder name when extract the zip file in code igniter
body: <p>I am using zip library to zip a folder or directory </p>
  
  <p>My path structure is </p>
  
  <pre><code>   $estructure = "/home/administrator/Downloads/pdf_files/" 
  </code></pre>
  
  <p>And iam zipping folder using below code</p>
  
  <pre><code>   $this-&gt;zip-&gt;read_dir($estructure);
     $this-&gt;zip-&gt;archive('/var/www/');
     $this-&gt;zip-&gt;download('folder_name.zip');
  </code></pre>
  
  <p>Now problem is when I extract compressed directory it gives full path like</p>
  
  <pre><code>  /home/administrator/Downloads/pdf_files/
  </code></pre>
  
  <p>what I need is when I extract the zip file its should only diretcory like pdf_file,</p>
  
  <p>Could any help me on that please? thanks</p>