DanielHindi / aws-s3-zipper

takes an amazon s3 bucket folder and zips it for streaming or serializes to a file
119 stars 74 forks source link

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

Open barahate90 opened 7 years ago

barahate90 commented 7 years ago

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 .