apply_diff_to_file

Function apply_diff_to_file 

Source
pub fn apply_diff_to_file(
    compressed_bytes: Vec<u8>,
    original_file_path: &str,
) -> Result<()>
Expand description

Applies a diff (patch) from a patch file to an original file, writing the result to a new file.

§Arguments

  • original_file_path - Path to the original file.
  • patch_file_path - Path to the file containing the diff (patch).

§Returns

Result<(), io::Error> indicating success or failure.