Returns path to the cache directory.
(&self)
| 96 | |
| 97 | /// Returns path to the cache directory. |
| 98 | pub fn directory(&self) -> &PathBuf { |
| 99 | &self |
| 100 | .config |
| 101 | .directory() |
| 102 | .expect("directory should be validated in Config::new") |
| 103 | } |
| 104 | |
| 105 | #[cfg(test)] |
| 106 | fn worker(&self) -> &Worker { |