node-stream-zip
node-stream-zip copied to clipboard
When a "Malicious entry" is found the zip file is locked until process is killed
I have a zip file that is being flagged as a "Malicious entry". That part is fine and throws an exception as expected, but then I'm getting stuck. If I do nothing then the zip file is locked and can't be touched until the process is killed (bad in my case because I'm trying to move on to the next file and don't want leftover files - I'm reusing zip filenames so it halts processing). If I try to call the zip.close() function it throws the "Malicious entry" error again and kills the process.
I'm using the async api. I haven't tried switching to the callback API, but I could try that if you think that may resolve the issue.
might be related to #96