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

zip to s3 function with recursive flag throwing error. #15

Open
barahate90 opened this issue Oct 4, 2017 · 0 comments
Open

zip to s3 function with recursive flag throwing error. #15

barahate90 opened this issue Oct 4, 2017 · 0 comments

Comments

@barahate90
Copy link

Hello There,
var params_zip={
s3FolderName: req.params.sr_id,
s3ZipFileName:req.params.sr_id+'.zip',
recursive:true
};
//console.log("zipper params test: ",params_zip);
zipper.zipToS3File (params_zip
,function(err,result){
//console.log('zipper error: ',err);
//console.log('zipper result: ',result);
if(err){
console.error(err);
callback(true,false);
}
else{
var lastFile = result.zippedFiles[result.zippedFiles.length-1];
if(lastFile){
console.log('last key ', lastFile.Key); // next time start from here
}

                callback(false,true);
            }
    });

Please help me to understand the issue or if any solution is there please provide the same .

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