pub fn process_package(
dir_output: &PathBuf,
file: &PathBuf,
) -> Result<PathBuf, Error>
Expand description
ยงPackage processor
This takes an output directory path and a path to a tar.gz file as input and anonymises them with the following steps:
- It replaces the values of Contact-Email and Contact-Name with XXXXXXX
- It generates a new docx file which only contains the name of the judgment.
- It updates the checksum field with the calculated checksum of the new docx file.
- It renames the folder and metadata file from TDR-xxx to TST-xxx.
- It creates a new tar.gz folder in the output directory.
- It deletes the uncompressed folder in the output directory.