Skip to main content

materialize_folder_content

Function materialize_folder_content 

Source
pub async fn materialize_folder_content(
    node: &IrohNode,
    manager: &FolderManager,
    namespace: NamespaceId,
    mount_root: &Path,
) -> Result<MaterializeOutcome>
Expand description

Materialize every entry of folder under mount_root, resolving conflicts.

The winner of each key keeps its original path; losing variants are written as <path>.conflict.<short-hash>. A receiveonly folder materializes only the winner (it must never resolve a conflict by writing locally). Blobs that are not yet local are skipped and reported as pending.

§Errors

Returns an error if the folder’s document cannot be read.