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

addLocalFolder changed the file properties.

Open ldlchina opened this issue 7 years ago • 2 comments

Created a zip like below, the file properties e.g. modified time were changed. Is it able to keep the file properties unchanged?

    var zip = new AmdZip();  
    zip.addLocalFolder('L:/Dev/TestNode);  
    zip.writeZip('dm-archive.zip');  

ldlchina avatar May 15 '18 14:05 ldlchina

date and time should work with the latest version, at least mod time. the other properties not really. you can't find too much about the files from node. hidden attribute for example or read-only. or if is possible, I don't know how.

cthackers avatar May 15 '18 14:05 cthackers

Good news. I'm using v0.4.11. Is it the latest version? The modified time is still changed and the compress rate is 0%. What can cause the problem? Thanks.

Here is my code:

  var zip = new AdmZip();
  zip.addLocalFolder('D:/Zip/Test', 'Test');
  var zipFilePath = path.join('D:/Zip', 'Test.zip');
  zip.writeZip(zipFilePath);

ldlchina avatar May 16 '18 01:05 ldlchina