title: Error: absolute path: //fileName/ unzipping a folder in protractor nodejs
body: <p>I tried many ways available in different sites to unzip the downloaded zipped folder and found the below one is simplest way.However, am facing the below issue.Please help me resolve this :</p>
  <pre><code>const extract = require('extract-zip');
  
  const path = require('path');
  
  unzip=async function(){
          let source = &quot;Downloads/sample.zip&quot;;
          let destination = &quot;Downloads/&quot;;
              let sP = path.resolve(source);
              console.log(&quot;Source path : &quot; +sP);
              let dP = path.resolve(destination);
              console.log(&quot;Destination path : &quot; +dP);
              await extract(sP, { dir: dP });
              console.log('Extraction complete');
  
          }
  </code></pre>
  <p>Output :</p>
  <pre><code>Source path : /Users/myName/Documents/framework/Downloads/sample.zip
  Destination path :/Users/myName/Documents/framework/Downloads
  .
  .
  Error: absolute path://sample/
  </code></pre>