Skip to main content

commit_pdf_save

Function commit_pdf_save 

Source
pub fn commit_pdf_save(
    store: &PdfSaveTokenStore,
    token: &str,
    target: Option<&Path>,
) -> Result<PdfCommitResult, CommitError>
Expand description

Consumes token, re-checks the on-disk source for same-path saves, and atomically writes the verified candidate to target (or back to the source path when None).