adm-zip icon indicating copy to clipboard operation
adm-zip copied to clipboard

On windows, unable to unzip the packages with ^M in some of their file names

Open sw-devendra opened this issue 8 years ago • 0 comments

On windows, adm-zip utility is unable to unzip packages which include some files with "^M" in their file name. It shows an error as following (the file name in the zip is "Icon^M" ):

"Error: ENOENT: no such file or directory, chmod '.....\Icon
'
    at Object.fs.chmodSync (fs.js:1061:18)
    at Object.writeFileTo (....\node_modules\adm-zip\util\utils.js:108:20)
    .....\node_modules\adm-zip\adm-zip.js:381:23
    at Array.forEach (native)
    at Object.extractAllTo

The code I used was as following:

  var AdmZip = require('adm-zip');

  var zip = new AdmZip('...\\example.zip'); // example.zip path
  zip.extractAllTo(' unzip path you want ', true);

I have attached the example.zip example.zip

sw-devendra avatar Jan 24 '17 01:01 sw-devendra