MCPcopy Create free account
hub / github.com/clearloop/leetcode-cli / code

Method code

src/config/storage.rs:50–58  ·  view source on GitHub ↗

get code path

(&self)

Source from the content-addressed store, hash-verified

48
49 /// get code path
50 pub fn code(&self) -> Result<String> {
51 let root = &self.root()?;
52 let p = PathBuf::from(root).join(&self.code);
53 if !PathBuf::from(&p).exists() {
54 fs::create_dir(&p)?
55 }
56
57 Ok(p.to_string_lossy().to_string())
58 }
59
60 /// get scripts path
61 pub fn scripts(mut self) -> Result<String> {

Callers

nothing calls this directly

Calls 1

rootMethod · 0.45

Tested by

no test coverage detected