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

Method read

atomic-repository/src/repository/sandbox.rs:134–137  ·  view source on GitHub ↗

The pointer at `dir`, if `dir` holds a remote one.

(dir: &Path)

Source from the content-addressed store, hash-verified

132impl RemoteSandboxPointer {
133 /// The pointer at `dir`, if `dir` holds a remote one.
134 pub fn read(dir: &Path) -> Option<Self> {
135 let bytes = std::fs::read(dir.join(SANDBOX_POINTER)).ok()?;
136 serde_json::from_slice(&bytes).ok()
137 }
138}
139
140/// Write `pointer` as `dir`'s [`SANDBOX_POINTER`], mode 0600 (it carries a

Callers 15

closeMethod · 0.45
digestFunction · 0.45
digestFunction · 0.45
mainFunction · 0.45
serveFunction · 0.45
mainFunction · 0.45
verify_binding_contentFunction · 0.45
try_lock_fileFunction · 0.45
observe_git_object_leaseFunction · 0.45
observe_git_index_leaseFunction · 0.45
build_anchor_bindingMethod · 0.45

Calls 2

readFunction · 0.50
okMethod · 0.45