adm-zip
adm-zip copied to clipboard
After calling DeleteFile, the archive is not changed
Please tell me what I'm doing wrong:
let zip = new AdmZip(pathFile); zip.deleteFile("image_.png");
Same problem here for a jar file. I tried every combination;
const jar = AdmZip(jarPath);
jar.deleteFile("org/webrtc/Camera1Session.class");
jar.deleteFile("webrtc/Camera1Session.class");
jar.deleteFile("Camera1Session.class");
if you call deleteFile it just removes that entry from memory list.
after deletion,
you should call WriteZip