adm-zip
adm-zip copied to clipboard
addLocalFolder changed the file properties.
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');
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.
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);