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

Method file_states

atomic-cli/src/remote_sandbox.rs:191–205  ·  view source on GitHub ↗
(&self, root: &Path, inodes: Vec<u64>)

Source from the content-addressed store, hash-verified

189
190impl RemoteSandboxLink for CliLink {
191 fn file_states(&self, root: &Path, inodes: Vec<u64>) -> Result<SandboxSlice, String> {
192 exchange(root, move |repository, target, channel| async move {
193 let response = sandbox_client(channel)
194 .get_file_states(pb::GetFileStatesRequest {
195 repository: Some(repository),
196 inodes,
197 target: Some(target),
198 expected_snapshot: None,
199 })
200 .await
201 .map_err(refused)?
202 .into_inner();
203 wire::slice_from_proto(&response.slice.ok_or("no slice in GetFileStates")?)
204 })
205 }
206
207 fn submit(
208 &self,

Callers 1

Calls 5

exchangeFunction · 0.85
sandbox_clientFunction · 0.85
slice_from_protoFunction · 0.85
get_file_statesMethod · 0.80
into_innerMethod · 0.45

Tested by

no test coverage detected