tools: add zip module
This modules contains the 'ZipEncoder' struct, which wraps an async writer, to create a ZIP archive on the fly To create a ZIP file, have a target that implements AsyncWrite, give it to ZipEncoder::new, add entries via 'add_entry' and at the end, call 'finish' for now, this does not implement compression (uses ZIPs STORE mode), and does not support empty directories or hardlinks (or any other special files) Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
4e32d1c590
commit
fdce52aa99
@ -36,6 +36,7 @@ pub mod logrotate;
|
||||
pub mod loopdev;
|
||||
pub mod fuse_loop;
|
||||
pub mod socket;
|
||||
pub mod zip;
|
||||
|
||||
mod parallel_handler;
|
||||
pub use parallel_handler::*;
|
||||
|
Reference in New Issue
Block a user