Commit 15e59f1 1 parent 4f85851 commit 15e59f1 Copy full SHA for 15e59f1
File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function Parse () {
38
38
me . _stream = new BlockStream ( 512 )
39
39
me . position = 0
40
40
me . _ended = false
41
- me . _entries = [ ]
41
+ me . _hardLinks = [ ]
42
42
43
43
me . _stream . on ( "error" , function ( e ) {
44
44
me . emit ( "error" , e )
@@ -252,15 +252,19 @@ Parse.prototype._startEntry = function (c) {
252
252
if ( onend ) entry . on ( "end" , onend )
253
253
254
254
if ( entry . type === "File" ) {
255
- this . _entries . forEach ( function ( prevEntry ) {
256
- if ( prevEntry . type === "Link" && prevEntry . path === entry . path ) {
255
+ this . _hardLinks . forEach ( function ( link ) {
256
+ if ( link . path === entry . path ) {
257
257
ev = "ignoredEntry"
258
258
}
259
259
} )
260
260
}
261
261
262
262
this . _entry = entry
263
- this . _entries . push ( entry )
263
+
264
+ if ( entry . type === "Link" ) {
265
+ this . _hardLinks . push ( entry )
266
+ }
267
+
264
268
var me = this
265
269
266
270
entry . on ( "pause" , function ( ) {
You can’t perform that action at this time.
0 commit comments