Skip to main content

rollback_file_patch

Function rollback_file_patch 

Source
pub async fn rollback_file_patch(
    pkg_path: &Path,
    file_name: &str,
    original_content: &[u8],
    expected_hash: &str,
) -> Result<(), Error>
Expand description

Rollback a single file to its original state. Writes the original content and verifies the resulting hash.