plerk / App-wtar

Non-blocking combination of wget and tar
0 stars 0 forks source link

Tar writter #1

Closed salva closed 10 years ago

salva commented 10 years ago

I have been playing with the idea of developing something similar for SCP (on top of Net::SSH::Any). But one of the problems I have faced is that there isn't any CPAN module able to create tar files from streamed data (or at least I have not been able to find it).

So, I just wanted to say that this would be an useful project in its own, decoupling the tar generation in your program an publishing it as an standalone module.

Cheers!

plicease commented 10 years ago

The tar aspect of this is going to be handled by Archive::Libarchive::XS (or ::FFI) and thus totally decoupled. Archive::Libarchive::XS aims to be a comprehensive set of BSD's libarchive bindings, which is stream oriented, but the IO is handled by callbacks (open, read/write, close) when you don't hand it a memory location or a file handle. I'm not familiar with Net::SSH::Any, but with some wrangling it may do what you need.

The plan is to have Archive::Libarchive::XS mostly finished and on CPAN by the end of the month. Feel free to checkout my repo here on github, I welcome input on its implementation.

https://github.com/plicease/Archive-Libarchive-XS https://github.com/plicease/Archive-Libarchive-FFI

salva commented 10 years ago

I will keep an eye on your repositories. Thank you!