You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
This would be a good idea for an fstream extension. (That is, a child class that inherits from Reader, but lives in its own repo/package.)
The question would be whether it's a merge, or just copies the two folders over as siblings. It would be pretty easy to do something like this:
CombinedReader.prototype.append = function (entry) {
this.emit('entry', entry)
}
then the Writer will put them out as siblings.
But it sounds like what you really want is for the entries to be merged together. So, if the added Reader is a dir, then any entry events get emitted as entry events, and if it's not a Directory, then just emit a single entry event.
Hi,
Is there a way to combine fstream Readers, into one Writer ?
For example I would like to pipe two different folders into a new one.
The ideal would be to do something like this:
Or should I use the events do do it manually ?
BTW fstream looks really great, but the doc is quite thin :)
The text was updated successfully, but these errors were encountered: