We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52237e3 commit 4f85851Copy full SHA for 4f85851
lib/parse.js
@@ -38,6 +38,7 @@ function Parse () {
38
me._stream = new BlockStream(512)
39
me.position = 0
40
me._ended = false
41
+ me._entries = []
42
43
me._stream.on("error", function (e) {
44
me.emit("error", e)
@@ -250,7 +251,16 @@ Parse.prototype._startEntry = function (c) {
250
251
252
if (onend) entry.on("end", onend)
253
254
+ if (entry.type === "File") {
255
+ this._entries.forEach(function(prevEntry) {
256
+ if (prevEntry.type === "Link" && prevEntry.path === entry.path) {
257
+ ev = "ignoredEntry"
258
+ }
259
+ })
260
261
+
262
this._entry = entry
263
+ this._entries.push(entry)
264
var me = this
265
266
entry.on("pause", function () {
0 commit comments