add zip_util.rs

This commit is contained in:
2019-12-01 11:16:25 +08:00
parent 2b44720224
commit 77832ad9e6

View File

@@ -18,6 +18,7 @@ use rust_util::{
new_box_ioerror,
};
// http://mvdnes.github.io/rust-docs/zip-rs/zip/index.html
pub fn zip_file(target: &str, zip_file: &str) -> XResult<()> {
if Path::new(zip_file).exists() {
return Err(new_box_ioerror(&format!("Zip file exists: {}", zip_file)));