MCPcopy Create free account
hub / github.com/argumentcomputer/ix / store_dir

Method store_dir

crates/compile/src/store.rs:58–65  ·  view source on GitHub ↗

Get the store directory path (~/.ix/store), creating it if needed

()

Source from the content-addressed store, hash-verified

56
57 /// Get the store directory path (~/.ix/store), creating it if needed
58 fn store_dir() -> StoreResult<PathBuf> {
59 let home = Self::get_home_dir()?;
60 let path = home.join(".ix").join("store");
61 if !path.exists() {
62 fs::create_dir_all(&path)?;
63 }
64 Ok(path)
65 }
66
67 /// Get the full path for a given address, creating parent directories if needed
68 /// Path structure: store/XX/YY/ZZ/remaining_hex

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected