|
if (opts.typeflag === 5 && name[name.length - 1] !== '/') name += '/' |
It seems that this condition will never be met because the Pack class never sets the typeflag attribute. Perhaps the condition should look like this:
if (opts.type === 'directory' && name[name.length - 1] !== '/') name += '/'
or this code should be removed.
tar-stream/headers.js
Line 56 in 126968f
It seems that this condition will never be met because the Pack class never sets the
typeflagattribute. Perhaps the condition should look like this:or this code should be removed.