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
{{ message }}
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
Hello, I am trying to figure out a way to only fire one 'end' event when piping multiple files to fstream.Reader. Is there a better way to handle this?
var r = fstream.Reader({
path: source,
type: 'File'
}).pipe(zlib.createGunzip()).pipe(tar.Extract({
strip: strip,
path: destination
}));
r.on('end', function() {
// this is firing everytime a file is extracted. Ideally, I would only fire one 'end' event.
if (typeof callback === 'function') {
return callback(null);
}
});
Result when extracting two files = two 'end' callbacks. Any advice is appreciated. Thanks.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, I am trying to figure out a way to only fire one 'end' event when piping multiple files to fstream.Reader. Is there a better way to handle this?
Result when extracting two files = two 'end' callbacks. Any advice is appreciated. Thanks.
The text was updated successfully, but these errors were encountered: