Skip to main content

append_preview

Function append_preview 

Source
pub fn append_preview(
    fs: &impl Fs,
    paths: &StorePaths,
    doc_id: &str,
    record: &PreviewRecord,
) -> Result<(), SessionError>
Expand description

Append one preview-artifact record to the document’s previews log.

Creates the log file and its parent directory if they do not yet exist.