Skip to main content

unbundle

Function unbundle 

Source
pub fn unbundle(
    fs: &impl Fs,
    paths: &StorePaths,
    data: &[u8],
) -> Result<String, SessionError>
Expand description

Reconstruct a document’s store directory from a bundle blob.

Returns the doc_id recorded in the bundle. Writes every entry under <root>/docs/<doc_id>/ using the injected Fs. The paths root determines where files land; pass a different StorePaths root than the source to restore into a separate store.