Skip to main content

document_id_for_path

Function document_id_for_path 

Source
pub fn document_id_for_path(path: &Path) -> String
Expand description

Compute the stable document id used by tracked-work and queue sidecars.

Existing documents are identified by the SHA-256 hex digest of their canonical path. Missing paths keep the historical fallback to the display string so callers that are already in best-effort cleanup paths do not panic.