MCPcopy Index your code
hub / github.com/clearloop/leetcode-cli / cache

Method cache

src/config/storage.rs:39–47  ·  view source on GitHub ↗

get cache path

(&self)

Source from the content-addressed store, hash-verified

37
38 /// get cache path
39 pub fn cache(&self) -> Result<String> {
40 let root = PathBuf::from(self.root()?);
41 if !root.exists() {
42 info!("Generate cache dir at {:?}.", &root);
43 fs::DirBuilder::new().recursive(true).create(&root)?;
44 }
45
46 Ok(root.join(CACHE).to_string_lossy().to_string())
47 }
48
49 /// get code path
50 pub fn code(&self) -> Result<String> {

Callers 5

connMethod · 0.80
cleanMethod · 0.80
update_after_acMethod · 0.80
newMethod · 0.80
runMethod · 0.80

Calls 1

rootMethod · 0.45

Tested by

no test coverage detected