const archive = archiver('zip'); archive.on('warning', (err) => { if(err.code === 'ENOENT') { log.err(err, 'Archive Warning [ENOENT]');
archive.on('error', function(err) { archive.abort() if(!(data.stream instanceof http.ServerResponse)) { return self.ipc.send('archive:notify', user.username, {message: err.message, error: true}) } else { return data.stream.status(500).send(err); } })
}) archive.on('warning', function (err) { if (err.code === 'ENOENT') { console.log(chalk.red(' Archive warn: ' + err)) } else {
zip.on("error", function(err) { res.status(500).send({ error: err.message }); });
if (err.code === "ENOENT") { return;