feat: update do_write_file_out

This commit is contained in:
2023-10-16 23:58:50 +08:00
parent 9db0cec508
commit 90040bbf8e

View File

@@ -152,7 +152,7 @@ pub fn decrypt_single(config: &Option<TinyEncryptConfig>,
util::zeroize(key);
util::zeroize(nonce);
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)
}