Skip to main content

temp_state_path

Function temp_state_path 

Source
pub fn temp_state_path(repo_dir: &Path, etag: &str) -> PathBuf
Expand description

Resume-state sidecar path for chunked downloads: {repo_dir}/blobs/{etag}.chunked.part.state.

Lives next to the temp_blob_path partial and tracks per-chunk completion offsets so that an interrupted download can resume on the next invocation. Cleaned up on successful finalization, kept alongside the partial when the download is interrupted.

Same period-handling rationale as temp_blob_path: explicit string concatenation rather than Path::with_extension so that etags containing periods round-trip correctly.