()
| 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") |
nothing calls this directly
no outgoing calls
no test coverage detected