Closed mattgodbolt closed 1 year ago
The stream for empty files is created here: https://github.com/mafintosh/tar-stream/blob/ca0e270f11dc61f507f7972e53071b8fa99e66bf/extract.js#L174
and the stream has already been ended here: https://github.com/mafintosh/tar-stream/blob/ca0e270f11dc61f507f7972e53071b8fa99e66bf/extract.js#L12
so there's no end()
event that's emitted after we have had a change to register an on end handler (as best I can tell).
Fixed in 3.1.0
If you are extracting an archive with zero-sized files in it, then the stream your
entry
handler is passed has already beenend
-ed. This means theon('end')
event is not triggered.Our code looks something like: