node-unzip icon indicating copy to clipboard operation
node-unzip copied to clipboard

ENOSPC error

Open jairogubler opened this issue 11 years ago • 0 comments

I created a test scenario with a full disk condition, and I couldn't catch the error in my application using node-unzip. Is this an issue, or I forgot something?

Code: var fs = require('fs'); var unzip = require('unzip');

try { var zip = unzip.Extract({ 'path': '/media/ramdrive', verbose : true }); zip.on('error', function (error) { console.log('zip.on: ', error); }); var file = fs.createReadStream('file.zip').pipe(zip); file.on('error', function (error) {
console.log('file.on: ', error); }); } catch (err) { console.log('error: ', err); }

Output: events.js:72 throw er; // Unhandled 'error' event ^ Error: ENOSPC, write

jairogubler avatar Jul 01 '14 13:07 jairogubler