MCPcopy Create free account
hub / github.com/SamSaffron/op-cache / config_path

Method config_path

src/config.rs:68–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 }
67
68 pub fn config_path() -> Result<PathBuf> {
69 if let Some(proj_dirs) = directories::ProjectDirs::from("", "", "op-cache") {
70 Ok(proj_dirs.config_dir().join("config.yaml"))
71 } else {
72 Ok(PathBuf::from("~/.config/op-cache/config.yaml"))
73 }
74 }
75
76 pub fn pid_path(&self) -> PathBuf {
77 self.socket_path.with_extension("pid")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected