add zip_util.rs
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user