add compress_file

This commit is contained in:
2020-04-18 17:14:21 +08:00
parent de492e1fbd
commit 784c15c05c
4 changed files with 58 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ fn process_config_item(options: &Options, config_item: &OSSBackupdConfigItem,
#[cfg(not(feature = "use_zip"))]
let zip_file = || {
if let Err(e) = zip_util::zip_file(target, temp_zip_file) {
if let Err(e) = zip_util::compress_file(target, temp_zip_file) {
print_message(MessageType::ERROR, &format!("Error in zip file: {}, at item index: {}", e, item_index));
return false;
};