feat: update do_write_file_out
This commit is contained in:
@@ -152,7 +152,7 @@ pub fn decrypt_single(config: &Option<TinyEncryptConfig>,
|
|||||||
util::zeroize(key);
|
util::zeroize(key);
|
||||||
util::zeroize(nonce);
|
util::zeroize(nonce);
|
||||||
drop(file_in);
|
drop(file_in);
|
||||||
if cmd_decrypt.remove_file { util::remove_file_with_msg(path); }
|
if do_write_file_out && cmd_decrypt.remove_file { util::remove_file_with_msg(path); }
|
||||||
Ok(meta.file_length)
|
Ok(meta.file_length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user