Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Commit c08855c

Browse files
committed
large file exporter fix
1 parent 5df8cbc commit c08855c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/exporter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@ function exporter (hash, dagService, options, callback) {
5252
rs.push(unmarshaledData.data)
5353
rs.push(null)
5454
}
55-
ee.emit('file', { stream: rs, path: name, dir: dir })
55+
ee.emit('file', { stream: rs, path: name })
5656
if (callback) {
5757
callback()
5858
}
5959
return
6060
} else {
61-
ee.emit('file', { stream: rs, path: name, dir: dir })
6261
init = false
6362
rs._read = () => {
6463
if (init) {
@@ -88,6 +87,7 @@ function exporter (hash, dagService, options, callback) {
8887
return
8988
})
9089
}
90+
ee.emit('file', { stream: rs, path: name })
9191
}
9292
}
9393

0 commit comments

Comments
 (0)