Open barahate90 opened 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 .
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 }
Please help me to understand the issue or if any solution is there please provide the same .