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

Method root

src/config/storage.rs:29–36  ·  view source on GitHub ↗

convert root path

(&self)

Source from the content-addressed store, hash-verified

27impl Storage {
28 /// convert root path
29 pub fn root(&self) -> Result<String> {
30 let home = dirs::home_dir()
31 .ok_or(Error::NoneError)?
32 .to_string_lossy()
33 .to_string();
34 let path = self.root.replace('~', &home);
35 Ok(path)
36 }
37
38 /// get cache path
39 pub fn cache(&self) -> Result<String> {

Callers 3

cacheMethod · 0.45
codeMethod · 0.45
scriptsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected