fn add_text_file_to_zip<W: Write + Seek>(
zip: &mut ZipWriter<W>,
src: &Path,
entry_name: &str,
options: SimpleFileOptions,
redactor: &Redactor,
) -> Result<(), AppError>Expand description
Read a file as UTF-8 text, apply redaction, and write it into the ZIP.
If the source file does not exist the entry is silently skipped (the file may be absent in a fresh install or on a sandboxed filesystem).