Skip to main content

release_move_source

Function release_move_source 

Source
pub fn release_move_source<V: StorageVerifier + ?Sized>(
    verifier: &V,
    asset_id: Uuid,
    src_path: &Path,
    blob_hashes: &[Hash32],
    verify_asset_accepted: bool,
) -> ReleaseDecision
Expand description

Move-import source deletion. Deleting the external source after a Move-mode import waits on the server’s durable verdict + a verified receipt — never on the local library copy alone — so a crash mid-import cannot lose the only copy. Returns the decision; the source is unlinked only on Release. The gate alone: a caller holding the library uses Workspace::release_move_source, which adds the read-back hash check before it reaches here.