You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For errors that occur while reading directories, it's handled manually. But, for errors coming from zipping, and writing to directory, for instance if you look at the writeToFile function you'll see this:
EasyZip.prototype.writeToFile = function(filePath,callback){
var data = this.generate({base64:false,compression:'DEFLATE'});
fs.writeFile(filePath, data, 'binary',callback);
}
the callback is passed here fs.writeFile(filePath, data, 'binary',callback)
How are errors handled in this module?
Normally there would be a callback which returns an error... or it would be a promise that resolves or rejects. How does it work in this module?
The text was updated successfully, but these errors were encountered: