Skip to main content

import_links_journal

Function import_links_journal 

Source
pub fn import_links_journal(
    legacy: &Path,
    target: &Path,
    trace: bool,
) -> Result<bool, LinkError>
Expand description

Copies every entry of the links-backed journal at legacy into the text journal at target, then removes the legacy store. Returns whether anything was imported.

When target already exists (a crash after publishing it), the legacy store is removed only if each of its entries is already in target.