Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low Level Operations - Issues #6

Open
vijay84 opened this issue Jun 21, 2017 · 0 comments
Open

Low Level Operations - Issues #6

vijay84 opened this issue Jun 21, 2017 · 0 comments

Comments

@vijay84
Copy link

vijay84 commented Jun 21, 2017

I have a zip file uploaded in s3 bucket. I m fetching the content of zip in buffer format and passing it to zipper.unzip function. performed some editing in some files, now when I am trying to upload it back to s3 it should be in the buffer format.
Here as we are not getting it in buffer format, its OK. but I am not able to zip it again.
var cleanUnzippedFS = unzipped.memory();
zipper.zip(cleanUnzippedFS, function(zipped) {
zipped.save(finalKey.fileName + '.zip', function(error) {
if(error) {
console.log("ERROR: %s", error.message);
}
else {
console.log("The file is scanned and cleaned of executables");
}
});
});

Here after adding above code snippet to my code inside unzip the zipped instance is always comes as null.
Not sure how can will get this issue fixed, please help!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant