MCPcopy Create free account
hub / github.com/AI45Lab/Code / key_for

Method key_for

core/src/workspace/s3.rs:399–407  ·  view source on GitHub ↗
(&self, path: &WorkspacePath)

Source from the content-addressed store, hash-verified

397 }
398
399 fn key_for(&self, path: &WorkspacePath) -> String {
400 if path.is_root() {
401 self.prefix.clone()
402 } else if self.prefix.is_empty() {
403 path.as_str().to_string()
404 } else {
405 format!("{}/{}", self.prefix, path.as_str())
406 }
407 }
408
409 fn list_prefix_for(&self, path: &WorkspacePath) -> String {
410 if path.is_root() {

Callers 5

get_object_textMethod · 0.80
write_textMethod · 0.80
write_text_if_versionMethod · 0.80

Calls 4

is_rootMethod · 0.80
cloneMethod · 0.45
is_emptyMethod · 0.45
as_strMethod · 0.45