expose createReadStream / createWriteStream
Hi @ksperis thank you very much for making this available in node.js! ;)
Would it be possible for you wrap / expose a node.js style createReadStream and createWriteStream around io_read() and io_write()?
This would make it easier to do something like:
bufferStream.pipe(ioctx.createWriteStream('obj-id'))
oh I just saw in your test file ioctx.createReadStream is already exposed, apologies about that I didn't see it in the README. Would it be possible to expose createWriteStream in the same manner?
hi @1N50MN14, I added a simple implementation of createWrtiteStream https://github.com/ksperis/node-rados/commit/5bf1a53fb1a0556e8c4fe81832c9f647a2b557be . I think this should be more tested, because the calls are asynchronous and we must be sure that writes are well ordered.