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
On node-7z(0.2.0), As follows, why did not into then? It into catch, But add success
sevenZip.add('WJF001.zip', allLogPath).progress(function(res) {
console.log(res, '111');
}).then(function() {
console.log('222');
}).catch(function(err) {
console.log(err, '333');
});
The text was updated successfully, but these errors were encountered:
My understanding is, it's not async/await (promise) function. This library triggers events from childProcess which is then retrieved using 'on' method. Hence '.then' or '.catch' wont work, instead you can use
On node-7z(0.2.0), As follows, why did not into then? It into catch, But add success
sevenZip.add('WJF001.zip', allLogPath).progress(function(res) {
console.log(res, '111');
}).then(function() {
console.log('222');
}).catch(function(err) {
console.log(err, '333');
});
The text was updated successfully, but these errors were encountered: