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

After calling DeleteFile, the archive is not changed

Open javaSair opened this issue 3 years ago • 1 comments

Please tell me what I'm doing wrong: let zip = new AdmZip(pathFile); zip.deleteFile("image_.png");

javaSair avatar Mar 30 '22 00:03 javaSair

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");

keremoge avatar Dec 16 '22 05:12 keremoge

if you call deleteFile it just removes that entry from memory list.

after deletion,

you should call WriteZip

5saviahv avatar May 22 '24 20:05 5saviahv