add compress_file
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user