MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / recorded_hash

Method recorded_hash

atomic-agent/src/integrations/receipt.rs:162–167  ·  view source on GitHub ↗

Look up the hash we recorded for a destination, if we installed it.

(&self, dst: &Path)

Source from the content-addressed store, hash-verified

160
161 /// Look up the hash we recorded for a destination, if we installed it.
162 pub fn recorded_hash(&self, dst: &Path) -> Option<&str> {
163 self.files
164 .iter()
165 .find(|f| f.dst == dst)
166 .map(|f| f.blake3.as_str())
167 }
168}
169
170/// Blake3 hex digest of a file's contents.

Callers 1

install_decisionFunction · 0.45

Calls 2

iterMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected